Pass formatter in TryFromSliceError Display impl

This commit is contained in:
Nikolai Vazquez
2017-09-29 11:26:19 -04:00
parent e41610c5ed
commit d2cf66b26c

View File

@@ -66,7 +66,7 @@ pub struct TryFromSliceError(());
impl fmt::Display for TryFromSliceError {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fmt::Display::fmt(self.__description())
fmt::Display::fmt(self.__description(), f)
}
}