gpui: Remove unnecessary String (#31314)

Replaces a `String` with `&'static str`

Release Notes:

- N/A
This commit is contained in:
tidely 2025-05-26 11:17:03 +03:00 committed by GitHub
parent 206be2b348
commit 8b59776320
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 11 deletions

View file

@ -1463,7 +1463,7 @@ impl LinuxClient for X11Client {
CursorStyle::None => create_invisible_cursor(&state.xcb_connection).log_err(),
_ => state
.cursor_handle
.load_cursor(&state.xcb_connection, &style.to_icon_name())
.load_cursor(&state.xcb_connection, style.to_icon_name())
.log_err(),
}) else {
return;