style(clippy): enforce clippy use_self lint
Clippy's `use_self` line ensures that `Self` is used instead of the real name whenever possible. This makes searching easier and cleans up the code a bit.
This commit is contained in:
committed by
Henrik Friedrichsen
parent
01e01b59e4
commit
fe8f8e78ee
@@ -14,7 +14,7 @@ pub trait CursiveExt {
|
||||
impl CursiveExt for cursive::Cursive {
|
||||
fn on_layout<F, R>(&mut self, cb: F) -> R
|
||||
where
|
||||
F: FnOnce(&mut cursive::Cursive, ViewRef<Layout>) -> R,
|
||||
F: FnOnce(&mut Self, ViewRef<Layout>) -> R,
|
||||
{
|
||||
let layout = self
|
||||
.find_name::<Layout>("main")
|
||||
|
||||
Reference in New Issue
Block a user