mirror of
https://github.com/openharmony/third_party_rust_encoding_rs.git
synced 2026-07-21 02:05:23 -04:00
Formatting.
This commit is contained in:
+3
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user