mirror of https://git.sr.ht/~stygianentity/bincode
improve size limit error display
This commit is contained in:
parent
3a24da087b
commit
7dc7a94560
|
|
@ -108,7 +108,7 @@ impl fmt::Display for ErrorKind {
|
||||||
"bincode can only encode sequences and maps that have a knowable size ahead of time."
|
"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 => {
|
ErrorKind::DeserializeAnyNotSupported => {
|
||||||
write!(
|
write!(
|
||||||
fmt,
|
fmt,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue