From b9b511148bfa6174231decee440d50504831270c Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Sat, 10 Apr 2021 00:22:45 -0600 Subject: [PATCH] Make gpui::platform module private --- gpui/src/lib.rs | 4 ++-- gpui/src/platform/test.rs | 2 -- zed/src/main.rs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gpui/src/lib.rs b/gpui/src/lib.rs index 7b0ecdddef..b60ce9b92d 100644 --- a/gpui/src/lib.rs +++ b/gpui/src/lib.rs @@ -21,8 +21,8 @@ pub use executor::Task; pub mod color; pub mod json; pub mod keymap; -pub mod platform; -pub use platform::Event; +mod platform; +pub use platform::{Event, PathPromptOptions}; pub use presenter::{ AfterLayoutContext, Axis, DebugContext, EventContext, LayoutContext, PaintContext, SizeConstraint, Vector2FExt, diff --git a/gpui/src/platform/test.rs b/gpui/src/platform/test.rs index b0d19232dc..f1d6bead66 100644 --- a/gpui/src/platform/test.rs +++ b/gpui/src/platform/test.rs @@ -17,8 +17,6 @@ pub struct Window { resize_handlers: Vec>, } -pub struct WindowContext {} - impl Platform { fn new() -> Self { Self { diff --git a/zed/src/main.rs b/zed/src/main.rs index b214924a80..407b4952c1 100644 --- a/zed/src/main.rs +++ b/zed/src/main.rs @@ -1,5 +1,5 @@ use fs::OpenOptions; -use gpui::platform::PathPromptOptions; +use gpui::PathPromptOptions; use log::LevelFilter; use simplelog::SimpleLogger; use std::{fs, path::PathBuf};