diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-25 23:36:32 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-25 23:36:32 +0100 |
commit | 04f44fdc7e5d155d73028ec721308e46a5b4b669 (patch) | |
tree | 3c4504176188bbcb9af677c31ed21b0007e00ee2 /import | |
parent | ff6c43e8e3a961cfc6f20aa1c2122dffe001f197 (diff) | |
download | jellything-04f44fdc7e5d155d73028ec721308e46a5b4b669.tar jellything-04f44fdc7e5d155d73028ec721308e46a5b4b669.tar.bz2 jellything-04f44fdc7e5d155d73028ec721308e46a5b4b669.tar.zst |
reverse indeex path compare of length
Diffstat (limited to 'import')
-rw-r--r-- | import/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs index 7baa796..a00a192 100644 --- a/import/src/lib.rs +++ b/import/src/lib.rs @@ -177,9 +177,9 @@ pub fn generate_node_paths(db: &DataAcid) -> anyhow::Result<()> { fn compare_index_path(x: &[usize], y: &[usize]) -> Ordering { if x.is_empty() { - Ordering::Less - } else if y.is_empty() { Ordering::Greater + } else if y.is_empty() { + Ordering::Less } else { match x[0].cmp(&y[0]) { o @ (Ordering::Less | Ordering::Greater) => o, |