From db64e0a0d0bd4971283a52f0a5a6517f6b5e6d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dj8yf0=CE=BCl?= Date: Mon, 28 Oct 2024 13:42:48 +0200 Subject: [PATCH] chore: cover one more `syn::generics::TypeParamBound` as per syntax change --- borsh-derive/src/internals/generics.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/borsh-derive/src/internals/generics.rs b/borsh-derive/src/internals/generics.rs index 72080f206..7914b3b00 100644 --- a/borsh-derive/src/internals/generics.rs +++ b/borsh-derive/src/internals/generics.rs @@ -259,7 +259,9 @@ impl FindTyParams { )] match bound { TypeParamBound::Trait(bound) => self.visit_path(&bound.path), - TypeParamBound::Lifetime(_) | TypeParamBound::Verbatim(_) => {} + TypeParamBound::Lifetime(_) + | TypeParamBound::Verbatim(_) + | TypeParamBound::PreciseCapture(_) => {} _ => {} } }