From 1794d8f035871601b86d79fe380547012d6b55bc Mon Sep 17 00:00:00 2001 From: Sxmourai Date: Tue, 30 Jan 2024 18:51:09 +0100 Subject: [PATCH] fix: Ran cargo fmt --- build.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/build.rs b/build.rs index 19a599c..c144459 100644 --- a/build.rs +++ b/build.rs @@ -293,16 +293,22 @@ impl quote::ToTokens for CgProgIf { } } - fn update_ids() { match std::fs::remove_file("pciids/pci.ids") { - Ok(_) => {}, - Err(e) => {println!("Failed to delete file, assuming it doesn't exist... {:?}", e)}, + Ok(_) => {} + Err(e) => { + println!( + "Failed to delete file, assuming it doesn't exist... {:?}", + e + ) + } } std::process::Command::new("curl") .arg("https://pci-ids.ucw.cz/v2.2/pci.ids") .arg("--output") .arg("pciids/pci.ids") - .spawn().expect("Failed to fetch data") - .wait().expect("Error fetching data"); -} \ No newline at end of file + .spawn() + .expect("Failed to fetch data") + .wait() + .expect("Error fetching data"); +}