Client::new_with_auth
for user-created StoredAuth
#273
markdown-link-check.yml
on: pull_request
markdown-link-check
14s
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)]`
|