fix: proper error handling in /hpo/terms (#156) #288
GitHub Actions / clippy
failed
Jul 11, 2024 in 1s
clippy
1 error, 1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
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 309 in src/server/run/hpo_terms.rs
github-actions / clippy
single-character string constant used as pattern
warning: single-character string constant used as pattern
--> src/server/run/hpo_terms.rs:309:37
|
309 | 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
Check failure on line 105 in src/server/run/hpo_terms.rs
github-actions / clippy
docs for function returning `Result` missing `# Errors` section
error: docs for function returning `Result` missing `# Errors` section
--> src/server/run/hpo_terms.rs:98:5
|
98 | / pub fn from_term_with_ontology(
99 | | term: &HpoTerm,
100 | | ontology: &Ontology,
101 | | genes: bool,
... |
104 | | doc: Option<&tantivy::Document>,
105 | | ) -> Result<Self, anyhow::Error> {
| |____________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
note: the lint level is defined here
--> src/main.rs:2:9
|
2 | #![deny(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::missing_errors_doc)]` implied by `#[deny(clippy::pedantic)]`
Loading