Merge commit 'f51aade56f' into clippyup
This commit is contained in:
parent
7ba06ec9c5
commit
fb41bfa774
244 changed files with 9305 additions and 4024 deletions
|
|
@ -7,13 +7,13 @@ extern crate macro_rules;
|
|||
#[allow(clippy::string_add_assign, unused)]
|
||||
fn main() {
|
||||
// ignores assignment distinction
|
||||
let mut x = "".to_owned();
|
||||
let mut x = String::new();
|
||||
|
||||
for _ in 1..3 {
|
||||
x = x + ".";
|
||||
}
|
||||
|
||||
let y = "".to_owned();
|
||||
let y = String::new();
|
||||
let z = y + "...";
|
||||
|
||||
assert_eq!(&x, &z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue