From e9da726eb6d7c6a14dbb6189a7897763a7082f89 Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Sat, 11 May 2024 10:03:36 +0100 Subject: [PATCH] fix: compilation failure with `serde` feature Introduced in https://github.com/eopb/redact/pull/61 --- src/serde.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serde.rs b/src/serde.rs index 0e38e77..fbdbc38 100644 --- a/src/serde.rs +++ b/src/serde.rs @@ -27,7 +27,7 @@ pub trait SerializableSecret { } impl SerializableSecret for &Secret { - 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) -> Self::Exposed<'_> { expose(self)