Skip to content

Commit

Permalink
Directly re-export assets_manager at root
Browse files Browse the repository at this point in the history
Instead of doing it with a module
  • Loading branch information
a1phyr committed Jan 4, 2023
1 parent e6970e5 commit e3b1e9c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<GgezFileSystem>;

/// Re-export of `assets_manager`
pub mod assets_manager {
pub use assets_manager::*;
}

mod seal {
pub trait Sealed {}

Expand Down

0 comments on commit e3b1e9c

Please sign in to comment.