Skip to content

Commit

Permalink
fix: remove serde feature dependency on std
Browse files Browse the repository at this point in the history
This was introduced in #46 and is required for #50
  • Loading branch information
eopb committed Mar 23, 2024
1 parent 75e8d25 commit 5d2c5ff
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 5d2c5ff

Please sign in to comment.