diff --git a/Cargo.lock b/Cargo.lock index d403cf4..0bab3e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2123,9 +2123,9 @@ dependencies = [ [[package]] name = "secrecy" -version = "0.8.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bd1c54ea06cfd2f6b63219704de0b9b4f72dcc2b8fdef820be6cd799780e91e" +checksum = "ba079fa568d52545cd70b334b2ce6f88f62b8fc2bda9290f48a0578388a49331" dependencies = [ "zeroize", ] diff --git a/Cargo.toml b/Cargo.toml index 52fb0a5..aba4846 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ split-debuginfo = "unpacked" baza = { package = "baza-lib", path = "lib" } baza-api-s3 = { path = "api/s3" } clap = { version = "4", features = ["derive", "env", "wrap_help"] } -secrecy = "0.8" +secrecy = "0.10" tokio = "1" tracing-subscriber = "0.3" diff --git a/api/s3/Cargo.toml b/api/s3/Cargo.toml index 5d5c6b6..143a190 100644 --- a/api/s3/Cargo.toml +++ b/api/s3/Cargo.toml @@ -13,5 +13,5 @@ baza = { package = "baza-lib", path = "../../lib" } derive_more = { version = "1", features = ["display", "error", "from"] } hyper = "0.14" s3-server = "0.2" -secrecy = "0.8" +secrecy = "0.10" tokio-util = { version = "0.7", features = ["io", "compat"] } diff --git a/api/s3/src/lib.rs b/api/s3/src/lib.rs index f7da361..b8c4dc9 100644 --- a/api/s3/src/lib.rs +++ b/api/s3/src/lib.rs @@ -42,8 +42,8 @@ where { let mut auth = SimpleAuth::new(); auth.register( - access_key.expose_secret().clone(), - secret_key.expose_secret().clone(), + access_key.expose_secret().to_owned(), + secret_key.expose_secret().to_owned(), ); let mut s3 = S3Service::new(S3(storage));