Fix a few out of date warnings

This commit is contained in:
Mikayla 2024-02-07 11:59:52 -08:00
parent 67555ee5b4
commit f507698c62
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -7,5 +7,6 @@ mod window;
pub(crate) use dispatcher::*;
pub(crate) use display::*;
pub(crate) use platform::*;
#[cfg(not(target_os = "macos"))]
pub(crate) use text_system::*;
pub(crate) use window::*;

View file

@ -1,7 +1,7 @@
use crate::{
AnyWindowHandle, BackgroundExecutor, ClipboardItem, CursorStyle, DisplayId, ForegroundExecutor,
Keymap, Platform, PlatformDisplay, PlatformTextSystem, Task, TestDisplay, TestTextSystem,
TestWindow, WindowOptions,
Keymap, Platform, PlatformDisplay, PlatformTextSystem, Task, TestDisplay, TestWindow,
WindowAppearance, WindowOptions,
};
use anyhow::{anyhow, Result};
use collections::VecDeque;
@ -121,7 +121,7 @@ impl Platform for TestPlatform {
fn text_system(&self) -> Arc<dyn PlatformTextSystem> {
#[cfg(target_os = "linux")]
return Arc::new(TestTextSystem {});
return Arc::new(crate::platform::test::TestTextSystem {});
#[cfg(target_os = "macos")]
return Arc::new(crate::platform::mac::MacTextSystem::new());

View file

@ -5,8 +5,7 @@ use collections::{BTreeMap, HashMap, HashSet};
use futures::Stream;
use gpui::{BackgroundExecutor, ImageSource};
use live_kit_server::{proto, token};
#[cfg(target_os = "macos")]
use media::core_video::CVImageBuffer;
use parking_lot::Mutex;
use postage::watch;
use std::{