Skip to content

Commit d2cf66b

Browse files
committed
Pass formatter in TryFromSliceError Display impl
1 parent e41610c commit d2cf66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub struct TryFromSliceError(());
6666
impl fmt::Display for TryFromSliceError {
6767
#[inline]
6868
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
69-
fmt::Display::fmt(self.__description())
69+
fmt::Display::fmt(self.__description(), f)
7070
}
7171
}
7272

0 commit comments

Comments
 (0)