Skip to content

Commit 6fac854

Browse files
authored
constrain zcf on T: 'static (#1392)
1 parent 7ae1e6d commit 6fac854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/yoke/src/zero_copy_from.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl ZeroCopyFrom<&'_ str> for &'static str {
241241
}
242242
}
243243

244-
impl<T> ZeroCopyFrom<[T]> for &'static [T] {
244+
impl<T: 'static> ZeroCopyFrom<[T]> for &'static [T] {
245245
fn zero_copy_from<'b>(cart: &'b [T]) -> &'b [T] {
246246
cart
247247
}

0 commit comments

Comments
 (0)