Skip to content

Commit

Permalink
Remove unnecessary &mut self
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 22, 2024
1 parent 9d368ae commit 8f52a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/text_selection/text_cursor_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl TextCursorState {
})
}

pub fn range(&mut self, galley: &Galley) -> Option<CursorRange> {
pub fn range(&self, galley: &Galley) -> Option<CursorRange> {
self.cursor_range
.map(|cursor_range| {
// We only use the PCursor (paragraph number, and character offset within that paragraph).
Expand Down

0 comments on commit 8f52a6e

Please sign in to comment.