Prevent rage-keygen
from overwriting existing key files
#1206
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
3 errors
Invalid workflow file:
.github/workflows/interop.yml#L196
The workflow is not valid. .github/workflows/interop.yml (Line: 196, Col: 14): Unrecognized named-value: 'matric'. Located at position 1 within expression: matric.alice
|
this `if` statement can be collapsed:
age/src/cli_common/file_io.rs#L342
error: this `if` statement can be collapsed
--> age/src/cli_common/file_io.rs:342:17
|
342 | / if !allow_overwrite {
343 | | if Path::new(&filename).exists() {
344 | | return Err(io::Error::new(
345 | | io::ErrorKind::AlreadyExists,
... |
348 | | }
349 | | }
| |_________________^
|
= note: `-D clippy::collapsible-if` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
342 ~ if !allow_overwrite && Path::new(&filename).exists() {
343 + return Err(io::Error::new(
344 + io::ErrorKind::AlreadyExists,
345 + DenyOverwriteFileError(filename),
346 + ));
347 + }
|
|
this `if` statement can be collapsed:
age/src/cli_common/file_io.rs#L342
error: this `if` statement can be collapsed
--> age/src/cli_common/file_io.rs:342:17
|
342 | / if !allow_overwrite {
343 | | if Path::new(&filename).exists() {
344 | | return Err(io::Error::new(
345 | | io::ErrorKind::AlreadyExists,
... |
348 | | }
349 | | }
| |_________________^
|
= note: `-D clippy::collapsible-if` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
342 ~ if !allow_overwrite && Path::new(&filename).exists() {
343 + return Err(io::Error::new(
344 + io::ErrorKind::AlreadyExists,
345 + DenyOverwriteFileError(filename),
346 + ));
347 + }
|
|