Skip to content

Commit 316e9db

Browse files
committed
Fix tidy error
1 parent 95e330b commit 316e9db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/ui/lint/noop-method-call.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ impl<T> Deref for DerefExample<T> {
2222
fn main() {
2323
let foo = &Foo(1u32);
2424
let foo_clone: &Foo<u32> = foo.clone();
25-
//~^ WARNING call to `.clone()` on a reference in this situation does nothing [noop_method_call]
25+
//~^ WARNING call to `.clone()` on a reference in this situation does nothing
2626

2727
let bar = &Bar(1u32);
2828
let bar_clone: Bar<u32> = bar.clone();
2929

3030
let deref = &&DerefExample(12u32);
3131
let derefed: &DerefExample<u32> = deref.deref();
32-
//~^ WARNING call to `.deref()` on a reference in this situation does nothing [noop_method_call]
32+
//~^ WARNING call to `.deref()` on a reference in this situation does nothing
3333

3434
let deref = &DerefExample(12u32);
3535
let derefed: &u32 = deref.deref();
3636

3737
let a = &&Foo(1u32);
3838
let borrowed: &Foo<u32> = a.borrow();
39-
//~^ WARNING call to `.borrow()` on a reference in this situation does nothing [noop_method_call]
39+
//~^ WARNING call to `.borrow()` on a reference in this situation does nothing
4040
}
4141

4242
fn generic<T>(foo: &Foo<T>) {
@@ -45,5 +45,5 @@ fn generic<T>(foo: &Foo<T>) {
4545

4646
fn non_generic(foo: &Foo<u32>) {
4747
foo.clone();
48-
//~^ WARNING call to `.clone()` on a reference in this situation does nothing [noop_method_call]
48+
//~^ WARNING call to `.clone()` on a reference in this situation does nothing
4949
}

0 commit comments

Comments
 (0)