wip: think about dyn any for ScopeState
This commit is contained in:
1 parent
5253ce6b65
commit
12808ec0aa
5 files changed
+119
-139
No files matched your search
@@ -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]));
|
||||
}
|
||||
Reference in new issue
Block a user