Skip to content

fix: escape colons in term query (#159) #285

fix: escape colons in term query (#159)

fix: escape colons in term query (#159) #285

GitHub Actions / clippy succeeded Jul 11, 2024 in 0s

clippy

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

Annotations

Check warning on line 298 in src/server/run/hpo_terms.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

single-character string constant used as pattern

warning: single-character string constant used as pattern
   --> src/server/run/hpo_terms.rs:298:37
    |
298 |         let name = if name.contains(":") {
    |                                     ^^^ help: consider using a `char`: `':'`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
    = note: `#[warn(clippy::single_char_pattern)]` on by default