From a37d0d2750068c5d153f13e8726eef9eccfb37c8 Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 9 Jul 2023 06:44:54 +0000 Subject: [PATCH] rustfmt --- kbinxml/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kbinxml/src/lib.rs b/kbinxml/src/lib.rs index b0d0136..92a93d6 100644 --- a/kbinxml/src/lib.rs +++ b/kbinxml/src/lib.rs @@ -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::>().ok_or(KbinError::NoNodeCollection)?; + let collection = reader + .collect::>() + .ok_or(KbinError::NoNodeCollection)?; Ok((collection, encoding)) }