aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src
diff options
context:
space:
mode:
authorPavel Roskin <1317472+proski@users.noreply.github.com>2023-07-18 13:42:35 -0700
committerGitHub <noreply@github.com>2023-07-18 20:42:35 +0000
commit395ad40bc11a3328abf0e1d3da6f39d2ffb9a7f7 (patch)
tree5ce894601390cfd1aa68ba9920c25d145c6e00f3 /alacritty_terminal/src
parent31fe27b237708ec5f18eee2b326c3efc112216bc (diff)
downloadalacritty-395ad40bc11a3328abf0e1d3da6f39d2ffb9a7f7.tar.gz
alacritty-395ad40bc11a3328abf0e1d3da6f39d2ffb9a7f7.zip
Remove unnecessary mutable references
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r--alacritty_terminal/src/vi_mode.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/vi_mode.rs b/alacritty_terminal/src/vi_mode.rs
index 7b4de605..d4f66d9e 100644
--- a/alacritty_terminal/src/vi_mode.rs
+++ b/alacritty_terminal/src/vi_mode.rs
@@ -243,7 +243,7 @@ fn first_occupied<T>(term: &Term<T>, mut point: Point) -> Point {
/// Move by semantically separated word, like w/b/e/ge in vi.
fn semantic<T: EventListener>(
- term: &mut Term<T>,
+ term: &Term<T>,
mut point: Point,
direction: Direction,
side: Side,
@@ -293,7 +293,7 @@ fn semantic<T: EventListener>(
/// Move by whitespace separated word, like W/B/E/gE in vi.
fn word<T: EventListener>(
- term: &mut Term<T>,
+ term: &Term<T>,
mut point: Point,
direction: Direction,
side: Side,