From 50e1e8bf02b92aac5f09a69e49fd0973026410c2 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 5 Jun 2016 12:02:22 +0200 Subject: [PATCH] Make the gfx::platform module private. --- components/gfx/lib.rs | 2 +- components/gfx/platform/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;