From 069c5377be7a9c695840595ba35d30fe3a142b98 Mon Sep 17 00:00:00 2001 From: "shiro.lee" Date: Mon, 24 Jun 2024 23:41:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rustfs/src/main.rs | 2 +- rustfs/src/storage/mod.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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;