Lint
This commit is contained in:
1 parent
8cf5110eb2
commit
6224a1b0a4
12 files changed
+54
-56
No files matched your search
+4
-2
@@ -71,7 +71,7 @@ impl Installer {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn frame(&mut self) -> anyhow::Result<StageFrameOutput> {
|
||||
pub fn frame(&self) -> anyhow::Result<StageFrameOutput> {
|
||||
let draw_commands = self.draw_current_progress();
|
||||
|
||||
Ok(StageFrameOutput {
|
||||
@@ -107,7 +107,9 @@ impl Installer {
|
||||
pub fn handle_event(&mut self, event: StageEvent) -> anyhow::Result<Option<StageTransition>> {
|
||||
match event {
|
||||
StageEvent::Resized(size) => self.window_state.size = size,
|
||||
StageEvent::ScaleFactorChanged(factor) => {
|
||||
StageEvent::ScaleFactorChanged(factor) =>
|
||||
{
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
self.window_state.set_scale_factor(factor as f32)
|
||||
}
|
||||
_ => {}
|
||||
|
||||
Reference in new issue
Block a user