Formatting.

This commit is contained in:
Henri Sivonen
2016-01-20 14:24:52 +02:00
parent 9ecba57414
commit e9b96da508
+3 -7
View File
@@ -70,15 +70,11 @@ impl Encoding {
let (result, read) = decoder.decode_to_string(bytes, &mut string, true);
match result {
DecoderResult::InputEmpty => {
debug_assert_eq!(read, bytes.len());
debug_assert_eq!(read, bytes.len());
Some(string)
},
DecoderResult::Malformed(_) => {
None
},
DecoderResult::OutputFull => {
unreachable!()
}
DecoderResult::Malformed(_) => None,
DecoderResult::OutputFull => unreachable!(),
}
}
// decode