diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs index e3f3f1d438f..761799d0ceb 100644 --- a/components/gfx/lib.rs +++ b/components/gfx/lib.rs @@ -104,7 +104,7 @@ pub mod paint_thread; // Platform-specific implementations. #[allow(unsafe_code)] -pub mod platform; +mod platform; // Text #[allow(unsafe_code)] diff --git a/components/gfx/platform/mod.rs b/components/gfx/platform/mod.rs index 17aaf36ae27..fed55781486 100644 --- a/components/gfx/platform/mod.rs +++ b/components/gfx/platform/mod.rs @@ -9,7 +9,7 @@ pub use platform::freetype::{font, font_context, font_list, font_template}; pub use platform::macos::{font, font_context, font_list, font_template}; #[cfg(any(target_os = "linux", target_os = "android", target_os = "windows"))] -pub mod freetype { +mod freetype { use libc::c_char; use std::ffi::CStr; use std::str; @@ -27,7 +27,7 @@ pub mod freetype { } #[cfg(target_os = "macos")] -pub mod macos { +mod macos { pub mod font; pub mod font_context; pub mod font_list;