mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-09 17:58:32 -04:00
Fix new clippy lint
This commit is contained in:
parent
472a4df69f
commit
52aba0115d
2 changed files with 5 additions and 8 deletions
|
@ -138,8 +138,7 @@ impl Config {
|
|||
// Read private key from file or CLI argument
|
||||
let (group_readable, world_readable) = matches
|
||||
.value_of("private-key-file")
|
||||
.map(is_file_insecurely_readable)
|
||||
.flatten()
|
||||
.and_then(is_file_insecurely_readable)
|
||||
.unwrap_or_default();
|
||||
if group_readable {
|
||||
warnings.push("Private key file is group-readable. This is insecure.".into());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue