mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-07-02 00:42:53 +00:00
refactor: use next_back() instead of last()
This commit is contained in:
@ -349,7 +349,7 @@ where
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.filter(|&it| it)
|
.filter(|&it| it)
|
||||||
.last()
|
.next_back()
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
@ -369,7 +369,7 @@ where
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.filter(|&it| it)
|
.filter(|&it| it)
|
||||||
.last()
|
.next_back()
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
|
Reference in New Issue
Block a user