clippy fixes

This commit is contained in:
Imbris 2020-07-12 23:30:46 -04:00
parent 8cd2207495
commit f0d4ec32f5
2 changed files with 5 additions and 6 deletions

View File

@ -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 => {

View File

@ -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 {