apply clippy optimizations

This commit is contained in:
yggverse 2024-12-16 13:05:45 +02:00
parent b5874342b5
commit 105c1ca7a5

View File

@ -91,7 +91,7 @@ impl Navigation {
match self.matches.borrow().get(next) { match self.matches.borrow().get(next) {
Some((start, end)) => { Some((start, end)) => {
self.index.replace(next); self.index.replace(next);
Some((start.clone(), end.clone())) Some((*start, *end))
} }
None => { None => {
self.index.replace(0); self.index.replace(0);