Skip to content

Commit

Permalink
fix type bounds for TryConvertOwned for (T, ...)
Browse files Browse the repository at this point in the history
T should be required to be TryConvertOwned.
  • Loading branch information
matsadler committed Oct 5, 2024
1 parent b6325e1 commit 96a9cc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/try_convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ macro_rules! impl_try_convert {
}
unsafe impl<#(T~N,)*> TryConvertOwned for (#(T~N,)*)
where
#(T~N: TryConvert,)*
#(T~N: TryConvertOwned,)*
{
}
});
Expand Down

0 comments on commit 96a9cc8

Please sign in to comment.