improve size limit error display

This commit is contained in:
Ty Overby 2017-10-13 08:59:08 -07:00
parent 3a24da087b
commit 7dc7a94560
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ impl fmt::Display for ErrorKind {
"bincode can only encode sequences and maps that have a knowable size ahead of time."
)
}
ErrorKind::SizeLimit => write!(fmt, "size limit was exceeded"),
ErrorKind::SizeLimit => write!(fmt, self.description()),
ErrorKind::DeserializeAnyNotSupported => {
write!(
fmt,