Skip to content

Commit a5015ea

Browse files
authored
Merge pull request #3912 from flip1995/compiletest
Set level of identity_conversion FP to warn
2 parents eb882f1 + 485e17c commit a5015ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/compile-test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ fn run_mode(mode: &str, dir: PathBuf) {
7474
compiletest::run_tests(&cfg);
7575
}
7676

77+
#[warn(clippy::identity_conversion)]
7778
fn run_ui_toml_tests(config: &compiletest::Config, mut tests: Vec<TestDescAndFn>) -> Result<bool, io::Error> {
7879
let mut result = true;
7980
let opts = compiletest::test_opts(config);

tests/ui/needless_pass_by_value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<T: Serialize, U> S<T, U> {
9595
s.len() + t.capacity()
9696
}
9797

98-
fn bar(_t: T // Ok, since `&T: Serialize` too
98+
fn bar(_t: T, // Ok, since `&T: Serialize` too
9999
) {
100100
}
101101

0 commit comments

Comments
 (0)