Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Fix unused_io_amount warning
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Livesey <[email protected]>
  • Loading branch information
suchapalaver committed Mar 13, 2023
1 parent 6a60a9b commit 17e17b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adm/src/commands/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub fn run(args: &ArgMatches) -> Result<(), CliError> {
.mode(0o640)
.open(private_key_path.as_path())?;

private_key_file.write(private_key.as_hex().as_bytes())?;
private_key_file.write_all(private_key.as_hex().as_bytes())?;
}

{
Expand All @@ -99,7 +99,7 @@ pub fn run(args: &ArgMatches) -> Result<(), CliError> {
.mode(0o644)
.open(public_key_path.as_path())?;

public_key_file.write(public_key.as_hex().as_bytes())?;
public_key_file.write_all(public_key.as_hex().as_bytes())?;
}

chown(private_key_path.as_path(), key_dir_uid, key_dir_gid)?;
Expand Down

0 comments on commit 17e17b3

Please sign in to comment.