From a3953ae96312e81a61758317c9682645c997f243 Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Fri, 31 Jan 2025 18:11:52 +0100 Subject: [PATCH] lints --- crates/viewer/re_time_panel/Cargo.toml | 2 +- crates/viewer/re_ui/src/filter_widget.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/viewer/re_time_panel/Cargo.toml b/crates/viewer/re_time_panel/Cargo.toml index dd3ac23ec035..2ab2febdc4fc 100644 --- a/crates/viewer/re_time_panel/Cargo.toml +++ b/crates/viewer/re_time_panel/Cargo.toml @@ -54,7 +54,7 @@ anyhow.workspace = true criterion.workspace = true insta = { workspace = true, features = ["redactions", "yaml"] } rand.workspace = true -smallvec = { workspace = true, features = ["serde"] } +smallvec = { workspace = true, features = ["serde"] } [lib] bench = false diff --git a/crates/viewer/re_ui/src/filter_widget.rs b/crates/viewer/re_ui/src/filter_widget.rs index 4e23cddf6f03..a4b9c93e4459 100644 --- a/crates/viewer/re_ui/src/filter_widget.rs +++ b/crates/viewer/re_ui/src/filter_widget.rs @@ -254,7 +254,7 @@ impl FilterMatcher { } } - /// Match the intput text and return match ranges if any. + /// Match the input text and return match ranges if any. /// /// This function does apply the full matching semantics: /// - It returns `None` when there is no match. @@ -478,14 +478,14 @@ mod test { #[test] fn test_match() { - let matcher = FilterMatcher::new(Some("str tru ure")); + let matcher = FilterMatcher::new(Some("str tru re")); // filter active but doesn't match assert!(matcher.find_matches("struct").is_none()); assert_eq!( matcher.find_matches("structure").unwrap().collect_vec(), - [0..4, 6..9] + [0..4, 7..9] ); }