Skip to content

Commit

Permalink
Merge pull request #62 from eopb/push-qqtkpqtxmyqk
Browse files Browse the repository at this point in the history
fix: compilation failure with `serde` feature
  • Loading branch information
eopb authored May 11, 2024
2 parents 3e9c3f6 + e9da726 commit 9c632f6
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 @@ -27,7 +27,7 @@ pub trait SerializableSecret<T> {
}

impl<T: Serialize> SerializableSecret<T> for &Secret<T> {
type Exposed<'a> = &'a T where T: 'a;
type Exposed<'a> = &'a T where T: 'a, Self: 'a;

fn expose_via(&self, expose: impl Fn(&Secret<T>) -> &T) -> Self::Exposed<'_> {
expose(self)
Expand Down

0 comments on commit 9c632f6

Please sign in to comment.