Skip to content

Commit 0fcc33e

Browse files
committed
Fix tests
1 parent e3cda2a commit 0fcc33e

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

tests/ui/assigning_clones.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ fn owned_method_val(mut mut_string: String, ref_str: &str) {
139139
}
140140

141141
struct HasDeref {
142-
a: String
142+
a: String,
143143
}
144144

145145
impl Deref for HasDeref {

tests/ui/field_reassign_with_default.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//@aux-build:proc_macros.rs
33

44
#![warn(clippy::field_reassign_with_default)]
5+
#![allow(clippy::assigning_clones)]
56

67
#[macro_use]
78
extern crate proc_macro_derive;

tests/ui/manual_memcpy/without_loop_counters.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![warn(clippy::manual_memcpy)]
2-
#![allow(clippy::useless_vec, clippy::needless_range_loop)]
2+
#![allow(clippy::assigning_clones, clippy::useless_vec, clippy::needless_range_loop)]
3+
34
//@no-rustfix
45
const LOOP_OFFSET: usize = 5000;
56

tests/ui/non_canonical_clone_impl.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![allow(clippy::clone_on_copy, unused)]
2+
#![allow(clippy::assigning_clones)]
23
#![no_main]
34

45
// lint

tests/ui/non_canonical_clone_impl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![allow(clippy::clone_on_copy, unused)]
2+
#![allow(clippy::assigning_clones)]
23
#![no_main]
34

45
// lint

0 commit comments

Comments
 (0)