From 44c92831c0b9a49efe88c283a8aff58a1895d306 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Dec 2024 14:57:05 +0200 Subject: [PATCH] remove extra references --- .../window/tab/item/page/content/text/search/navigation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text/search/navigation.rs b/src/app/browser/window/tab/item/page/content/text/search/navigation.rs index 632882f3..78e8f499 100644 --- a/src/app/browser/window/tab/item/page/content/text/search/navigation.rs +++ b/src/app/browser/window/tab/item/page/content/text/search/navigation.rs @@ -83,7 +83,7 @@ impl Navigation { let index = self.index.take(); match self.matches.borrow().get(back(index)) { Some((start, end)) => { - self.text_buffer.apply_tag(&self.current_tag, &start, &end); + self.text_buffer.apply_tag(&self.current_tag, start, end); self.index.replace(if index == 0 { len_to_index(self.matches.borrow().len()) } else { @@ -110,7 +110,7 @@ impl Navigation { let next = forward(index); match self.matches.borrow().get(next) { Some((start, end)) => { - self.text_buffer.apply_tag(&self.current_tag, &start, &end); + self.text_buffer.apply_tag(&self.current_tag, start, end); self.index.replace(next); Some((*start, *end)) }