diff --git a/Cargo.toml b/Cargo.toml index f6f4ccd..5f9548f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ tracing = "0.1" async-trait = "0.1" http = "1.1" reqwest = "0.12" -secrecy = "0.8" +secrecy = "0.10" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde-xml-rs = "0.6" diff --git a/src/network/net_auth.rs b/src/network/net_auth.rs index 0f24546..055fec1 100644 --- a/src/network/net_auth.rs +++ b/src/network/net_auth.rs @@ -4,7 +4,7 @@ use std::fmt::{Display, Formatter}; pub struct Password(secrecy::SecretString); impl Password { pub fn new(password: String) -> Self { - Self(secrecy::SecretString::new(password)) + Self(secrecy::SecretString::from(password)) } pub fn expose_password(&self) -> &str { secrecy::ExposeSecret::expose_secret(&self.0)