Skip to content

Commit cab59ee

Browse files
committed
Fixes some build and style warnings
1 parent 26de01c commit cab59ee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::hash::Source;
22
use anyhow::Error;
33
use std::{
4-
env, fs, io, iter,
4+
fs, io, iter,
55
path::{Path, PathBuf},
66
};
77

src/trust.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ fn load_or_generate_signer() -> Result<SigningKey, Error> {
9090
Some(bytes) => {
9191
// We used to write the entire keypair to the file, but now we only write the private key.
9292
// So it's important to take only the first 32 bytes here.
93-
let key_bytes: [u8; 32] = bytes[..32].try_into()
93+
let key_bytes: [u8; 32] = bytes[..32]
94+
.try_into()
9495
.map_err(|_| anyhow::anyhow!("Invalid key length"))?;
9596
Ok(SigningKey::from_bytes(&key_bytes))
9697
}

0 commit comments

Comments
 (0)