fix clippy lint without drop
This commit is contained in:
parent
a633f4e228
commit
a4bef827d1
1 changed files with 2 additions and 3 deletions
|
|
@ -122,10 +122,9 @@ pub enum ClientError {
|
|||
Unknown(String),
|
||||
}
|
||||
|
||||
#[allow(clippy::needless_pass_by_value)]
|
||||
fn into_string(val: impl ToString) -> String {
|
||||
let result = val.to_string();
|
||||
drop(val);
|
||||
result
|
||||
val.to_string()
|
||||
}
|
||||
|
||||
impl ClientError {
|
||||
|
|
|
|||
Loading…
Reference in a new issue