Fix bugs
[?]
Jan 16, 2022, 7:39 PM
CYDK6S5LRLGTPA4BX4XUNKCX6E6PIEFQXVX7KJAJ6HBMFDDJUPBQCDependencies
- [2]
QEKHTVB7Get most things semi-working except the final sort - [3]
5Y7ZXB53Start picker UI - [4]
LLFG625IShould be all the database functions I need
Change contents
- replacement in src/pick.rs at line 85
if shortlist.len() < count.into() {if shortlist.len() <= count.into() { - replacement in src/pick.rs at line 93
let pivot: *mut (String, i64) = &mut shortlist[count as usize];let pivot: *mut (String, i64) = &mut shortlist[count as usize - 1]; - edit in src/pick.rs at line 100
}{let len = shortlist.len();let mut stack: Vec<(*mut (String, i64), *mut (String, i64))> = vec![(&mut shortlist[0], &mut shortlist[len - 1])];while let Some((lo, hi)) = stack.pop() {unsafe {if lo < hi {let p = lo.offset(hi.offset_from(lo) / 2);let p = comparator.partition(lo, hi, p).await?;stack.extend_from_slice(&[(lo, p), (p.offset(1), hi)]);}}} - edit in src/pick.rs at line 116
for (rank, (name, _id)) in shortlist.into_iter().enumerate() {println!("{}: {}", rank + 1, name);} - replacement in src/pick.rs at line 142
std::cmp::Ordering::Less => (),std::cmp::Ordering::Greater => (), - replacement in src/pick.rs at line 149
std::cmp::Ordering::Greater => (),std::cmp::Ordering::Less => (),