generated from PlexSheep/rs-base
automatic cargo CI changes
This commit is contained in:
parent
0a37691e05
commit
81b54c66f2
|
@ -8,5 +8,7 @@ pub fn decode(buf: &[u8]) -> Result<String, Utf8Error> {
|
||||||
Ok(match std::str::from_utf8(buf) {
|
Ok(match std::str::from_utf8(buf) {
|
||||||
Ok(s) => s.to_string(),
|
Ok(s) => s.to_string(),
|
||||||
Err(err) => return Err(err.into()),
|
Err(err) => return Err(err.into()),
|
||||||
}.trim_matches(char::from(0)).to_string())
|
}
|
||||||
|
.trim_matches(char::from(0))
|
||||||
|
.to_string())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue