diff --git a/src/tools/paperkey.rs b/src/tools/paperkey.rs index 3c1f7c91..2dc185a8 100644 --- a/src/tools/paperkey.rs +++ b/src/tools/paperkey.rs @@ -1,5 +1,5 @@ use std::io::Write; -use std::process::{Stdio, Command}; +use std::process::{Command, Stdio}; use anyhow::{bail, format_err, Error}; use serde::{Deserialize, Serialize}; @@ -61,11 +61,11 @@ pub fn generate_paper_key( .collect(); (lines, false) - }, + } Err(err) => { eprintln!("Couldn't parse data as KeyConfig - {}", err); bail!("Neither a PEM-formatted private key, nor a PBS key file."); - }, + } } }; @@ -83,14 +83,16 @@ fn paperkey_html( subject: Option, is_master: bool, ) -> Result<(), Error> { - let img_size_pt = 500; writeln!(output, "")?; writeln!(output, "")?; writeln!(output, "")?; writeln!(output, "")?; - writeln!(output, "")?; + writeln!( + output, + "" + )?; writeln!(output, "Proxmox Backup Paperkey")?; writeln!(output, "