From 4e36ed6120a38f028907732afbaf6685ca72be65 Mon Sep 17 00:00:00 2001 From: lcnr Date: Tue, 5 Mar 2024 21:33:43 +0100 Subject: [PATCH] only require `Deserialize<'de>` this is necessary to avoid breakage in future Rust versions. For more details, see https://github.com/rust-lang/rust/pull/119820. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 44dd492..2b9cde7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -255,7 +255,7 @@ impl FlatField { Span::call_site(), ); let deserialize_bound = LitStr::new( - &format!("{}: ::serde::de::DeserializeOwned", &ty_tokens), + &format!("{}: ::serde::de::Deserialize<'de>", &ty_tokens), Span::call_site(), );