Skip to content

Commit

Permalink
release: 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
VIAL Sébastien committed Nov 25, 2023
1 parent 410b039 commit 71ec2bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ impl<T: ?Sized> Into<String> for Password<T> {
}
}

impl<T: ?Sized> From<String> for Password<T> {
fn from(value: String) -> Self {
Password(Default::default(), value)
}
}

impl<T: ?Sized> Debug for Password<T> {
/// Formats the `Password` for debugging purposes.
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Expand Down

0 comments on commit 71ec2bb

Please sign in to comment.