Fix clippy::needless_borrow in console

Clippy says the compiler automatically borrows this
This commit is contained in:
ice_iix 2022-10-30 15:32:31 -07:00
parent ab5f87effd
commit 6394b60a39
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ impl Var for CVar<String> {
}
fn deserialize(&self, input: &str) -> Box<dyn Any> {
Box::new((&input[1..input.len() - 1]).to_owned())
Box::new(input[1..input.len() - 1].to_owned())
}
fn description(&self) -> &'static str {