Skip to content

Do not follow redirect on checking layer in trusted db #32

Do not follow redirect on checking layer in trusted db

Do not follow redirect on checking layer in trusted db #32

Triggered via pull request February 28, 2024 16:51
Status Failure
Total duration 1m 24s
Artifacts

ci.yml

on: pull_request
Matrix: Build library
Publish release
0s
Publish release
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 6 warnings
Check
Process completed with exit code 101.
no function or associated item named `from_str` found for struct `url::Url` in the current scope: src/utils.rs#L86
error[E0599]: no function or associated item named `from_str` found for struct `url::Url` in the current scope --> src/utils.rs:86:24 | 86 | let final_url = Url::from_str(location)?; | ^^^^^^^^ function or associated item not found in `url::Url` | note: if you're trying to build a new `url::Url` consider using one of the following associated functions: url::Url::parse url::Url::parse_with_params url::Url::from_file_path url::Url::from_directory_path --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/url-2.5.0/src/lib.rs:292:5 | 292 | pub fn parse(input: &str) -> Result<Url, crate::ParseError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 322 | / pub fn parse_with_params<I, K, V>(input: &str, iter: I) -> Result<Url, crate::ParseError> 323 | | where 324 | | I: IntoIterator, 325 | | I::Item: Borrow<(K, V)>, 326 | | K: AsRef<str>, 327 | | V: AsRef<str>, | |______________________^ ... 2443 | pub fn from_file_path<P: AsRef<Path>>(path: P) -> Result<Url, ()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 2480 | pub fn from_directory_path<P: AsRef<Path>>(path: P) -> Result<Url, ()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: items from traits can only be used if the trait is in scope help: the following trait is implemented but not in scope; perhaps add a `use` for it: | 1 + use std::str::FromStr; |
failed to resolve: use of undeclared crate or module `redirect`: src/utils.rs#L76
error[E0433]: failed to resolve: use of undeclared crate or module `redirect` --> src/utils.rs:76:15 | 76 | .redirect(redirect::Policy::none()) | ^^^^^^^^ use of undeclared crate or module `redirect` | help: consider importing this struct | 1 + use reqwest::redirect::Policy; | help: if you import `Policy`, refer to it directly | 76 - .redirect(redirect::Policy::none()) 76 + .redirect(Policy::none()) |
no function or associated item named `from_str` found for struct `url::Url` in the current scope: src/utils.rs#L86
error[E0599]: no function or associated item named `from_str` found for struct `url::Url` in the current scope --> src/utils.rs:86:24 | 86 | let final_url = Url::from_str(location)?; | ^^^^^^^^ function or associated item not found in `url::Url` | note: if you're trying to build a new `url::Url` consider using one of the following associated functions: url::Url::parse url::Url::parse_with_params url::Url::from_file_path url::Url::from_directory_path --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/url-2.5.0/src/lib.rs:292:5 | 292 | pub fn parse(input: &str) -> Result<Url, crate::ParseError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 322 | / pub fn parse_with_params<I, K, V>(input: &str, iter: I) -> Result<Url, crate::ParseError> 323 | | where 324 | | I: IntoIterator, 325 | | I::Item: Borrow<(K, V)>, 326 | | K: AsRef<str>, 327 | | V: AsRef<str>, | |______________________^ ... 2443 | pub fn from_file_path<P: AsRef<Path>>(path: P) -> Result<Url, ()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 2480 | pub fn from_directory_path<P: AsRef<Path>>(path: P) -> Result<Url, ()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: items from traits can only be used if the trait is in scope help: the following trait is implemented but not in scope; perhaps add a `use` for it: | 1 + use std::str::FromStr; |
failed to resolve: use of undeclared crate or module `redirect`: src/utils.rs#L76
error[E0433]: failed to resolve: use of undeclared crate or module `redirect` --> src/utils.rs:76:15 | 76 | .redirect(redirect::Policy::none()) | ^^^^^^^^ use of undeclared crate or module `redirect` | help: consider importing this struct | 1 + use reqwest::redirect::Policy; | help: if you import `Policy`, refer to it directly | 76 - .redirect(redirect::Policy::none()) 76 + .redirect(Policy::none()) |
clippy
Clippy had exited with the 101 exit code
Rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
unneeded unit return type: src/main.rs#L89
warning: unneeded unit return type --> src/main.rs:89:39 | 89 | fn backup_or_fail(file_path: &PathBuf) -> () { | ^^^^^^ help: remove the `-> ()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
unneeded unit return type: src/main.rs#L89
warning: unneeded unit return type --> src/main.rs:89:39 | 89 | fn backup_or_fail(file_path: &PathBuf) -> () { | ^^^^^^ help: remove the `-> ()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
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/