Replace another occurrence of "".to_owned()

This commit is contained in:
flip1995 2018-09-15 11:25:40 +02:00
parent f3add4acb4
commit 021748eb6a
No known key found for this signature in database
GPG key ID: 9F184E1164831181

View file

@ -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);