wip: think about dyn any for ScopeState

This commit is contained in:
Jonathan Kelley committed 2022-11-19 15:24:28 -08:00
1 parent 5253ce6b65
commit 12808ec0aa
5 files changed
+119 -139

No files matched your search

-11
View File
@@ -158,14 +158,3 @@ impl<T> EventHandler<'_, T> {
self.callback.replace(None);
}
}
#[test]
fn matches_slice() {
let left = &[1, 2, 3];
let right = &[1, 2, 3, 4, 5];
assert!(is_path_ascendant(left, right));
assert!(!is_path_ascendant(right, left));
assert!(!is_path_ascendant(left, left));
assert!(is_path_ascendant(&[1, 2], &[1, 2, 3, 4, 5]));
}