clippy
5 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 5 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.82.0 (f6e511eec 2024-10-15)
- cargo 1.82.0 (8f40fc59f 2024-08-21)
- clippy 0.1.82 (f6e511e 2024-10-15)
Annotations
Check warning on line 101 in src/crawler/llm/mod.rs
github-actions / clippy
useless use of `vec!`
warning: useless use of `vec!`
--> src/crawler/llm/mod.rs:101:30
|
101 | let necessary_tags = vec!["article", "content"];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `["article", "content"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
= note: `#[warn(clippy::useless_vec)]` on by default
Check warning on line 5 in src/crawler/llm/prompt.rs
github-actions / clippy
constants have by default a `'static` lifetime
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:5:46
|
5 | pub(super) const SCRAPE_HTML_SYSTEM_PROMPT: &'static str = r#"
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
Check warning on line 3 in src/crawler/llm/prompt.rs
github-actions / clippy
constants have by default a `'static` lifetime
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:3:36
|
3 | pub(super) const USER_QUERY_NAME: &'static str = "user-query";
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
Check warning on line 2 in src/crawler/llm/prompt.rs
github-actions / clippy
constants have by default a `'static` lifetime
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:2:39
|
2 | pub(super) const SYSTEM_PROMPT_NAME: &'static str = "system-prompt";
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
Check warning on line 1 in src/crawler/llm/prompt.rs
github-actions / clippy
constants have by default a `'static` lifetime
warning: constants have by default a `'static` lifetime
--> src/crawler/llm/prompt.rs:1:35
|
1 | pub(super) const LLM_MODEL_NAME: &'static str = "gpt-4o-2024-08-06";
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
= note: `#[warn(clippy::redundant_static_lifetimes)]` on by default