This commit is contained in:
Dimitri Sabadie 2022-07-27 00:08:26 +02:00
parent 1c249215c9
commit 295043e5af

View File

@ -330,7 +330,7 @@ where
match cps.binary_search_by(|key| key.t.partial_cmp(&t).unwrap()) {
Err(i) if i >= len => None,
Err(i) if i == 0 => None,
Err(i) => Some(i-1),
Err(i) => Some(i - 1),
Ok(i) if i == len - 1 => None,
Ok(i) => Some(i),
}