diff options
| author | flip1995 <9744647+flip1995@users.noreply.github.com> | 2018-09-15 11:25:40 +0200 |
|---|---|---|
| committer | flip1995 <9744647+flip1995@users.noreply.github.com> | 2018-09-15 11:25:40 +0200 |
| commit | 021748eb6a2fd86bd21e173cef04c19bdb456bb4 (patch) | |
| tree | 7ceaac5ddc52ee85f2253421960f4d705e958f89 | |
| parent | f3add4acb40faafda0f5727aaa2b9321eb97371a (diff) | |
| download | rust-021748eb6a2fd86bd21e173cef04c19bdb456bb4.tar.gz rust-021748eb6a2fd86bd21e173cef04c19bdb456bb4.zip | |
Replace another occurrence of "".to_owned()
| -rw-r--r-- | clippy_lints/src/swap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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_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); |
