Skip to content

Commit

Permalink
Adjust iterator item type
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Chibisov <[email protected]>
  • Loading branch information
2 people authored and wash2 committed Nov 2, 2023
1 parent 331a6de commit e63ab5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/seat/pointer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ impl<U: PointerDataExt + 'static, S: SurfaceDataExt + 'static> ThemedPointer<U,
let mut themes = self.themes.lock().unwrap();

let scale = self.surface.data::<S>().unwrap().surface_data().scale_factor();
for cursor_icon_name in iter::once(icon.name()).chain(icon.alt_names().iter().copied()) {
for cursor_icon_name in iter::once(&icon.name()).chain(icon.alt_names().iter()) {
if let Some(cursor) = themes
.get_cursor(conn, cursor_icon_name, scale as u32, &self.shm)
.map_err(PointerThemeError::InvalidId)?
Expand Down

0 comments on commit e63ab5f

Please sign in to comment.