Skip to content

Commit 3ba4c3a

Browse files
author
Michael Wright
committed
Fix use_self violation
1 parent e2e892b commit 3ba4c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/misc_early.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ struct ReturnVisitor {
205205
}
206206

207207
impl ReturnVisitor {
208-
fn new() -> ReturnVisitor {
209-
ReturnVisitor {
208+
fn new() -> Self {
209+
Self {
210210
found_return: false,
211211
}
212212
}

0 commit comments

Comments
 (0)