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

Commit 17e17b3

Browse files
committed
Fix unused_io_amount warning
Signed-off-by: Joseph Livesey <joseph.livesey@btp.works>
1 parent 6a60a9b commit 17e17b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adm/src/commands/keygen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn run(args: &ArgMatches) -> Result<(), CliError> {
8484
.mode(0o640)
8585
.open(private_key_path.as_path())?;
8686

87-
private_key_file.write(private_key.as_hex().as_bytes())?;
87+
private_key_file.write_all(private_key.as_hex().as_bytes())?;
8888
}
8989

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

102-
public_key_file.write(public_key.as_hex().as_bytes())?;
102+
public_key_file.write_all(public_key.as_hex().as_bytes())?;
103103
}
104104

105105
chown(private_key_path.as_path(), key_dir_uid, key_dir_gid)?;

0 commit comments

Comments
 (0)