Skip to content

Commit e33af5c

Browse files
authored
hybrid-array: looser Debug impl on Array (#941)
Removes the `U::ArrayType<T>: Debug` bound, leveraging the `Debug` impl on `[T]` instead.
1 parent 8df5747 commit e33af5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hybrid-array/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,9 @@ impl<T, U> Debug for Array<T, U>
194194
where
195195
T: Debug,
196196
U: ArraySize,
197-
U::ArrayType<T>: Debug,
198197
{
199198
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
200-
f.debug_tuple("Array").field(&self.0).finish()
199+
f.debug_tuple("Array").field(&self.0.as_ref()).finish()
201200
}
202201
}
203202

0 commit comments

Comments
 (0)