Skip to content

Commit

Permalink
Merge pull request #51 from eopb/push-vqoskvnxznul
Browse files Browse the repository at this point in the history
fix: remove `serde` feature dependency on `std`
  • Loading branch information
eopb authored Mar 23, 2024
2 parents 75e8d25 + 5d2c5ff commit 240f5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub fn redact_secret<S: Serializer, T>(
secret: &Secret<T>,
serializer: S,
) -> Result<S::Ok, S::Error> {
format!("{secret:?}").serialize(serializer)
serializer.collect_str(&format_args!("{secret:?}"))
}

#[cfg(test)]
Expand Down

0 comments on commit 240f5e4

Please sign in to comment.