Replace &* incantations with .deref()

This commit is contained in:
Katherine Watson
2024-06-17 18:36:04 -07:00
committed by kat watson
parent 100d7b6e1c
commit 3286e49370
3 changed files with 31 additions and 23 deletions

View File

@@ -1,5 +1,6 @@
use std::{
fs::{self, DirBuilder},
ops::DerefMut,
os::unix::fs::{DirBuilderExt, PermissionsExt},
path::Path,
};
@@ -56,7 +57,7 @@ pub fn genkey(private_keys_dir: &Path) -> Result<()> {
if !pqsk_path.exists() && !pqpk_path.exists() {
let mut pqsk = SSk::random();
let mut pqpk = SPk::random();
StaticKem::keygen(pqsk.secret_mut(), &mut *pqpk)?;
StaticKem::keygen(pqsk.secret_mut(), pqpk.deref_mut())?;
pqpk.store(pqpk_path)?;
pqsk.store_secret(pqsk_path)?;
} else {