mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
run clippy
This commit is contained in:
parent
411acc73ff
commit
50d37bc2d4
@ -230,7 +230,12 @@ impl Controls {
|
||||
}
|
||||
}
|
||||
|
||||
fn view(&mut self, settings: &Settings, key_layout: &Option<KeyLayout>, dt: f32) -> Element<Message> {
|
||||
fn view(
|
||||
&mut self,
|
||||
settings: &Settings,
|
||||
key_layout: &Option<KeyLayout>,
|
||||
dt: f32,
|
||||
) -> Element<Message> {
|
||||
self.time += dt as f64;
|
||||
|
||||
// TODO: consider setting this as the default in the renderer
|
||||
@ -590,7 +595,11 @@ impl MainMenuUi {
|
||||
let mut events = Vec::new();
|
||||
|
||||
let (messages, _) = self.ui.maintain(
|
||||
self.controls.view(&global_state.settings, &global_state.window.key_layout, dt.as_secs_f32()),
|
||||
self.controls.view(
|
||||
&global_state.settings,
|
||||
&global_state.window.key_layout,
|
||||
dt.as_secs_f32(),
|
||||
),
|
||||
global_state.window.renderer_mut(),
|
||||
None,
|
||||
&mut global_state.clipboard,
|
||||
|
Loading…
Reference in New Issue
Block a user