Replace another occurrence of "".to_owned()
This commit is contained in:
parent
f3add4acb4
commit
021748eb6a
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ fn check_manual_swap(cx: &LateContext<'_, '_>, block: &Block) {
|
|||
(true, format!(" `{}` and `{}`", first, second),
|
||||
format!("std::mem::swap({}, {})", first.mut_addr(), second.mut_addr()))
|
||||
} else {
|
||||
(true, "".to_owned(), "".to_owned())
|
||||
(true, String::new(), String::new())
|
||||
};
|
||||
|
||||
let span = w[0].span.to(second.span);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue