mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
Fix tests
This commit is contained in:
parent
e3cda2a399
commit
0fcc33e29c
5 changed files with 6 additions and 2 deletions
|
@ -139,7 +139,7 @@ fn owned_method_val(mut mut_string: String, ref_str: &str) {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct HasDeref {
|
struct HasDeref {
|
||||||
a: String
|
a: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Deref for HasDeref {
|
impl Deref for HasDeref {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
//@aux-build:proc_macros.rs
|
//@aux-build:proc_macros.rs
|
||||||
|
|
||||||
#![warn(clippy::field_reassign_with_default)]
|
#![warn(clippy::field_reassign_with_default)]
|
||||||
|
#![allow(clippy::assigning_clones)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate proc_macro_derive;
|
extern crate proc_macro_derive;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#![warn(clippy::manual_memcpy)]
|
#![warn(clippy::manual_memcpy)]
|
||||||
#![allow(clippy::useless_vec, clippy::needless_range_loop)]
|
#![allow(clippy::assigning_clones, clippy::useless_vec, clippy::needless_range_loop)]
|
||||||
|
|
||||||
//@no-rustfix
|
//@no-rustfix
|
||||||
const LOOP_OFFSET: usize = 5000;
|
const LOOP_OFFSET: usize = 5000;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#![allow(clippy::clone_on_copy, unused)]
|
#![allow(clippy::clone_on_copy, unused)]
|
||||||
|
#![allow(clippy::assigning_clones)]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
// lint
|
// lint
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#![allow(clippy::clone_on_copy, unused)]
|
#![allow(clippy::clone_on_copy, unused)]
|
||||||
|
#![allow(clippy::assigning_clones)]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
// lint
|
// lint
|
||||||
|
|
Loading…
Reference in a new issue