Skip to content

Commit

Permalink
cleanup: formatting and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Dec 7, 2023
1 parent 4521d6e commit aedb8f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion runtime/src/program/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ where
}

fn build_user_interface<'a, P: Program>(
id: crate::window::Id,
_id: crate::window::Id,
program: &'a mut P,
cache: user_interface::Cache,
renderer: &mut P::Renderer,
Expand Down
8 changes: 4 additions & 4 deletions tiny_skia/src/window/compositor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ pub fn present<T: AsRef<str>>(
surface
.window
.resize(
NonZeroU32::new(physical_size.width as u32)
.ok_or_else(|| compositor::SurfaceError::InvalidDimensions)?,
NonZeroU32::new(physical_size.height as u32)
.ok_or_else(|| compositor::SurfaceError::InvalidDimensions)?,
NonZeroU32::new(physical_size.width)
.ok_or(compositor::SurfaceError::InvalidDimensions)?,
NonZeroU32::new(physical_size.height)
.ok_or(compositor::SurfaceError::InvalidDimensions)?,
)
.map_err(|_| compositor::SurfaceError::Resize)?;
if let Ok(mut b) = surface.window.buffer_mut() {
Expand Down
2 changes: 0 additions & 2 deletions winit/src/application.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Create interactive, native cross-platform applications.
mod drag_resize;
#[cfg(feature = "trace")]
mod profiler;
mod state;

#[cfg(feature = "a11y")]
Expand Down

0 comments on commit aedb8f7

Please sign in to comment.