From 96a9cc85099a9f9cd25ae17fa450d0852b2bb459 Mon Sep 17 00:00:00 2001 From: Mat Sadler Date: Sat, 5 Oct 2024 12:55:26 -0700 Subject: [PATCH] fix type bounds for TryConvertOwned for (T, ...) T should be required to be TryConvertOwned. --- CHANGELOG.md | 2 ++ src/try_convert.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb56b4d5..64472395 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,8 @@ ### Fixed - The `fatal` exception raised when a Rust function bound to Ruby panics can no longer be caught with `rescue Exception`. +- Fixed type bounds for `TryConvertOwned` for `(T, ...)` so that `T` must be + `TryConvertOwned`. ### Security diff --git a/src/try_convert.rs b/src/try_convert.rs index 45493fb3..81b385d6 100644 --- a/src/try_convert.rs +++ b/src/try_convert.rs @@ -240,7 +240,7 @@ macro_rules! impl_try_convert { } unsafe impl<#(T~N,)*> TryConvertOwned for (#(T~N,)*) where - #(T~N: TryConvert,)* + #(T~N: TryConvertOwned,)* { } });