From e3b1e9c6cfddba18f7e0f9b6a0a1215e224c33e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20du=20Garreau?= Date: Wed, 4 Jan 2023 10:06:52 +0100 Subject: [PATCH] Directly re-export `assets_manager` at root Instead of doing it with a module --- src/lib.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2dd0c79..63f952e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,18 +6,15 @@ mod assets; mod source; -use ::assets_manager::AnyCache; -pub use ::assets_manager::{AssetCache, ReloadWatcher}; +pub use assets_manager; + +use assets_manager::AnyCache; +pub use assets_manager::{AssetCache, ReloadWatcher}; pub use source::GgezFileSystem; /// An `AssetCache` for use with `ggez`. pub type GgezAssetCache = assets_manager::AssetCache; -/// Re-export of `assets_manager` -pub mod assets_manager { - pub use assets_manager::*; -} - mod seal { pub trait Sealed {}