diff --git a/rustfs/src/main.rs b/rustfs/src/main.rs index 270454e3d..b0f452318 100644 --- a/rustfs/src/main.rs +++ b/rustfs/src/main.rs @@ -37,7 +37,7 @@ fn main() -> Result<()> { async fn run(opt: config::Opt) -> Result<()> { // Setup S3 service let service = { - let mut b = S3ServiceBuilder::new(storage::simple_fs::SimpleFS {}); + let mut b = S3ServiceBuilder::new(storage::SimpleFS {}); // Enable authentication if let (Some(ak), Some(sk)) = (opt.access_key, opt.secret_key) { diff --git a/rustfs/src/storage/mod.rs b/rustfs/src/storage/mod.rs index 37f86e5d9..30a6d4164 100644 --- a/rustfs/src/storage/mod.rs +++ b/rustfs/src/storage/mod.rs @@ -1 +1,3 @@ -pub mod simple_fs; +mod simple_fs; + +pub use simple_fs::SimpleFS;