gpui: Remove unnecessary String (#31314)
Replaces a `String` with `&'static str` Release Notes: - N/A
This commit is contained in:
parent
206be2b348
commit
8b59776320
3 changed files with 7 additions and 11 deletions
|
@ -704,7 +704,7 @@ impl LinuxClient for WaylandClient {
|
|||
let scale = focused_window.primary_output_scale();
|
||||
state
|
||||
.cursor
|
||||
.set_icon(&wl_pointer, serial, &style.to_icon_name(), scale);
|
||||
.set_icon(&wl_pointer, serial, style.to_icon_name(), scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1511,12 +1511,9 @@ impl Dispatch<wl_pointer::WlPointer, ()> for WaylandClientStatePtr {
|
|||
cursor_shape_device.set_shape(serial, style.to_shape());
|
||||
} else {
|
||||
let scale = window.primary_output_scale();
|
||||
state.cursor.set_icon(
|
||||
&wl_pointer,
|
||||
serial,
|
||||
&style.to_icon_name(),
|
||||
scale,
|
||||
);
|
||||
state
|
||||
.cursor
|
||||
.set_icon(&wl_pointer, serial, style.to_icon_name(), scale);
|
||||
}
|
||||
}
|
||||
drop(state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue