Feature: Impl GitHub Actions #1
Annotations
1 error and 7 warnings
test
Process completed with exit code 101.
|
useless use of `vec!`:
src/crawler/llm/mod.rs#L101
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
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L5
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
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L3
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
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L2
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
|
constants have by default a `'static` lifetime:
src/crawler/llm/prompt.rs#L1
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
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|