pass clippy lint
This commit is contained in:
parent
4acf301022
commit
c7ccb432ef
@ -80,14 +80,14 @@ fn handle_event(&mut self, event: Event, cx: &mut Context) -> EventResult {
|
|||||||
modifiers: KeyModifiers::CONTROL,
|
modifiers: KeyModifiers::CONTROL,
|
||||||
} => {
|
} => {
|
||||||
self.scroll(self.size.1 as usize / 2, true);
|
self.scroll(self.size.1 as usize / 2, true);
|
||||||
return EventResult::Consumed(None);
|
EventResult::Consumed(None)
|
||||||
}
|
}
|
||||||
KeyEvent {
|
KeyEvent {
|
||||||
code: KeyCode::Char('u'),
|
code: KeyCode::Char('u'),
|
||||||
modifiers: KeyModifiers::CONTROL,
|
modifiers: KeyModifiers::CONTROL,
|
||||||
} => {
|
} => {
|
||||||
self.scroll(self.size.1 as usize / 2, false);
|
self.scroll(self.size.1 as usize / 2, false);
|
||||||
return EventResult::Consumed(None);
|
EventResult::Consumed(None)
|
||||||
}
|
}
|
||||||
_ => self.contents.handle_event(event, cx),
|
_ => self.contents.handle_event(event, cx),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user