Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Jan 31, 2025
1 parent 0421c75 commit a3953ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/viewer/re_time_panel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions crates/viewer/re_ui/src/filter_widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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]
);
}

Expand Down

0 comments on commit a3953ae

Please sign in to comment.