mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
Change &mut self to &self in set_cursor
This commit is contained in:
committed by
Pierre Krieger
parent
2cabfdd373
commit
e7e66b057d
@@ -618,7 +618,7 @@ impl Window {
|
|||||||
|
|
||||||
/// Modifies the mouse cursor of the window.
|
/// Modifies the mouse cursor of the window.
|
||||||
/// Has no effect on Android.
|
/// Has no effect on Android.
|
||||||
pub fn set_cursor(&mut self, cursor: MouseCursor) {
|
pub fn set_cursor(&self, cursor: MouseCursor) {
|
||||||
self.window.set_cursor(cursor);
|
self.window.set_cursor(cursor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user