Skip to content

Commit 021748e

Browse files
committed
Replace another occurrence of "".to_owned()
1 parent f3add4a commit 021748e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/swap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ fn check_manual_swap(cx: &LateContext<'_, '_>, block: &Block) {
125125
(true, format!(" `{}` and `{}`", first, second),
126126
format!("std::mem::swap({}, {})", first.mut_addr(), second.mut_addr()))
127127
} else {
128-
(true, "".to_owned(), "".to_owned())
128+
(true, String::new(), String::new())
129129
};
130130

131131
let span = w[0].span.to(second.span);

0 commit comments

Comments
 (0)