diff --git a/src/common/mod.rs b/src/common/mod.rs index f243fa8..098dde5 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -8,5 +8,7 @@ pub fn decode(buf: &[u8]) -> Result { Ok(match std::str::from_utf8(buf) { Ok(s) => s.to_string(), Err(err) => return Err(err.into()), - }.trim_matches(char::from(0)).to_string()) + } + .trim_matches(char::from(0)) + .to_string()) }