small refactor

main
aprzn 2 years ago
parent 674285de46
commit 5c764b5f8d

@ -55,8 +55,8 @@ impl BeatRate {
*self
.changes
.iter()
.rev()
.find(|&el| el.0 <= &pos)
.filter(|&el| el.0 <= &pos)
.last()
.unwrap()
.1
}
@ -107,8 +107,8 @@ impl TimeSignature {
*self
.changes
.iter()
.rev()
.find(|&el| el.0 <= &pos)
.filter(|&el| el.0 <= &pos)
.last()
.unwrap()
.1
}

Loading…
Cancel
Save