Fix use_self violation

This commit is contained in:
Michael Wright 2018-11-14 08:43:35 +02:00
parent e2e892b59b
commit 3ba4c3a9b1

View File

@ -205,8 +205,8 @@ struct ReturnVisitor {
}
impl ReturnVisitor {
fn new() -> ReturnVisitor {
ReturnVisitor {
fn new() -> Self {
Self {
found_return: false,
}
}