From 2a5f47a9c9791694fa869a1b145ea44ca7022635 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 29 Oct 2024 22:46:37 +0000 Subject: [PATCH] fix(deps): update rust crate secrecy to 0.10 --- Cargo.toml | 2 +- src/network/net_auth.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)