From 01c023d50f3fa936e6df9a9d820f0a15c047942a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 1 Feb 2021 14:06:18 +0100 Subject: [PATCH] paperkey: rustfmt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- src/tools/paperkey.rs | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) 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, "