mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
apply clippy optimizations
This commit is contained in:
parent
b5874342b5
commit
105c1ca7a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue