mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
clippy fixes
This commit is contained in:
parent
8cd2207495
commit
f0d4ec32f5
@ -135,11 +135,10 @@ impl PlayState for MainMenuState {
|
||||
e
|
||||
),
|
||||
// TODO: remove parentheses
|
||||
client::AuthClientError::RequestError() => format!(
|
||||
"{}",
|
||||
localized_strings.get("main.login.failed_sending_request"),
|
||||
),
|
||||
client::AuthClientError::ServerError(_, e) => format!("{}", e),
|
||||
client::AuthClientError::RequestError() => localized_strings
|
||||
.get("main.login.failed_sending_request")
|
||||
.to_owned(),
|
||||
client::AuthClientError::ServerError(_, e) => e,
|
||||
},
|
||||
},
|
||||
InitError::ClientCrashed => {
|
||||
|
@ -26,7 +26,7 @@ impl Event {
|
||||
|
||||
fn hidpi_factor(&self) -> f64 { winit::window::Window::scale_factor(&self.0) }
|
||||
}
|
||||
convert_event!(event, &WindowRef(window.window())).map(|input| Self(input))
|
||||
convert_event!(event, &WindowRef(window.window())).map(Self)
|
||||
}
|
||||
|
||||
pub fn is_keyboard_or_mouse(&self) -> bool {
|
||||
|
Loading…
Reference in New Issue
Block a user