Skip to content

Client::new_with_auth for user-created StoredAuth #273

Client::new_with_auth for user-created StoredAuth

Client::new_with_auth for user-created StoredAuth #273

Triggered via pull request June 5, 2024 05:28
Status Success
Total duration 24s
Artifacts

markdown-link-check.yml

on: pull_request
markdown-link-check
14s
markdown-link-check
Fit to window
Zoom out
Zoom in

Annotations

2 errors
unneeded `return` statement: ocipkg/src/distribution/auth.rs#L138
error: unneeded `return` statement --> ocipkg/src/distribution/auth.rs:138:9 | 138 | return Ok(runtime_dir.join("auth.json")); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `-D clippy::needless-return` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_return)]` help: remove `return` | 138 - return Ok(runtime_dir.join("auth.json")); 138 + Ok(runtime_dir.join("auth.json")) |
redundant closure: ocipkg/src/distribution/auth.rs#L29
error: redundant closure --> ocipkg/src/distribution/auth.rs:29:41 | 29 | auth.get_or_insert_with(|| Self::default()).append(new); | ^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `-D clippy::redundant-closure` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::redundant_closure)]`