Skip to content

Commit d752f90

Browse files
committed
remove only marginally helpful helper
1 parent e98d45c commit d752f90

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lightning/src/util/persist.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -672,13 +672,6 @@ mod tests {
672672
assert!(persister.kv.remove("namespace", "key",).is_err());
673673
}
674674

675-
fn is_sorted<T>(data: &[T]) -> bool
676-
where
677-
T: Ord,
678-
{
679-
data.windows(2).all(|w| w[0] <= w[1])
680-
}
681-
682675
// =================================
683676
// TESTS
684677
// =================================
@@ -794,7 +787,7 @@ mod tests {
794787
// Check that we get the right number of updates, in order
795788
let listed_update_names = persister.list_update_names(&monitor_name).unwrap();
796789
assert_eq!(listed_update_names.len(), 999);
797-
assert!(is_sorted(&listed_update_names));
790+
assert!(&listed_update_names.windows(2).all(|w| w[0] <= w[1]));
798791
}
799792

800793
#[test]

0 commit comments

Comments
 (0)