mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-07 01:55:13 -05:00
rustfmt
This commit is contained in:
@@ -56,7 +56,9 @@ pub fn is_binary_xml(input: &[u8]) -> bool {
|
||||
pub fn from_binary(input: Bytes) -> Result<(NodeCollection, EncodingType)> {
|
||||
let reader = Reader::new(input)?;
|
||||
let encoding = reader.encoding();
|
||||
let collection = reader.collect::<Option<_>>().ok_or(KbinError::NoNodeCollection)?;
|
||||
let collection = reader
|
||||
.collect::<Option<_>>()
|
||||
.ok_or(KbinError::NoNodeCollection)?;
|
||||
|
||||
Ok((collection, encoding))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user