remove more needless String conversions

This commit is contained in:
Vukašin Stepanović
2023-02-15 11:18:56 +00:00
parent 528ddea41c
commit df8828331d
4 changed files with 6 additions and 10 deletions

View File

@@ -300,9 +300,7 @@ pub fn urlDecode(encoded: &str) -> Result<String, Exceptions> {
if let Ok(decoded) = decode(encoded) {
Ok(decoded.to_string())
} else {
Err(Exceptions::illegalState(String::from(
"UnsupportedEncodingException",
)))
Err(Exceptions::illegalState("UnsupportedEncodingException"))
}
}