mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
Fix use_self
violation
This commit is contained in:
parent
e2e892b59b
commit
3ba4c3a9b1
@ -205,8 +205,8 @@ struct ReturnVisitor {
|
||||
}
|
||||
|
||||
impl ReturnVisitor {
|
||||
fn new() -> ReturnVisitor {
|
||||
ReturnVisitor {
|
||||
fn new() -> Self {
|
||||
Self {
|
||||
found_return: false,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user