Skip to content

Commit

Permalink
hybrid-array: looser Debug impl on Array (#941)
Browse files Browse the repository at this point in the history
Removes the `U::ArrayType<T>: Debug` bound, leveraging the `Debug` impl
on `[T]` instead.
  • Loading branch information
tarcieri authored Sep 4, 2023
1 parent 8df5747 commit e33af5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hybrid-array/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,9 @@ impl<T, U> Debug for Array<T, U>
where
T: Debug,
U: ArraySize,
U::ArrayType<T>: Debug,
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("Array").field(&self.0).finish()
f.debug_tuple("Array").field(&self.0.as_ref()).finish()
}
}

Expand Down

0 comments on commit e33af5c

Please sign in to comment.