From: flip1995 <9744647+flip1995@users.noreply.github.com> Date: Sat, 15 Sep 2018 09:25:40 +0000 (+0200) Subject: Replace another occurrence of "".to_owned() X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=021748eb6a2fd86bd21e173cef04c19bdb456bb4;hp=f3add4acb40faafda0f5727aaa2b9321eb97371a;p=rust.git Replace another occurrence of "".to_owned() --- diff --git a/clippy_lints/src/swap.rs b/clippy_lints/src/swap.rs index c6668288a55..cd3a7259aae 100644 --- a/clippy_lints/src/swap.rs +++ b/clippy_lints/src/swap.rs @@ -125,7 +125,7 @@ fn check_for_slice<'a>( (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);