Skip to content

Commit fae4e70

Browse files
committed
Resolve semicolon_if_nothing_returned clippy lints
error: consider adding a `;` to the last statement for consistent formatting --> src/receiver.rs:164:17 | 164 | self.visit_macro_mut(&mut i.mac) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.visit_macro_mut(&mut i.mac);` | = note: `-D clippy::semicolon-if-nothing-returned` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned error: consider adding a `;` to the last statement for consistent formatting --> tests/test.rs:1336:13 | 1336 | self::f() | ^^^^^^^^^ help: add a `;` here: `self::f();` | = note: `-D clippy::semicolon-if-nothing-returned` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
1 parent 5c53519 commit fae4e70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/receiver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl VisitMut for ReplaceSelf {
161161
if i.mac.path.is_ident("macro_rules")
162162
|| i.mac.path.segments.last().unwrap().ident == "select"
163163
{
164-
self.visit_macro_mut(&mut i.mac)
164+
self.visit_macro_mut(&mut i.mac);
165165
}
166166
}
167167
}

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ pub mod issue158 {
13331333
#[async_trait]
13341334
pub trait Trait {
13351335
async fn f(&self) {
1336-
self::f()
1336+
self::f();
13371337
}
13381338
}
13391339
}

0 commit comments

Comments
 (0)