refactor(masking): PII improvements (#77)

This commit is contained in:
kos-for-juspay
2022-12-13 08:50:21 +01:00
committed by GitHub
parent b3fefeb2aa
commit 124048ce75
16 changed files with 188 additions and 162 deletions

View File

@ -23,7 +23,7 @@ where
type Err = core::convert::Infallible;
fn from_str(src: &str) -> Result<Self, Self::Err> {
Ok(Secret::<String, I>::new(src.to_string()))
Ok(Self::new(src.to_string()))
}
}
@ -34,6 +34,6 @@ where
type Err = core::convert::Infallible;
fn from_str(src: &str) -> Result<Self, Self::Err> {
Ok(StrongSecret::<String, I>::new(src.to_string()))
Ok(Self::new(src.to_string()))
}
}