Fix clippy::needless_borrow in console
Clippy says the compiler automatically borrows this
This commit is contained in:
parent
ab5f87effd
commit
6394b60a39
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue