From 328224d46cd3ce021b18627d6e3820e3a8e0dd4f Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Mon, 22 Dec 2025 12:26:43 -0700 Subject: [PATCH] cargo fmt --- ffi/build.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ffi/build.rs b/ffi/build.rs index fa36fdf..f24a1ab 100644 --- a/ffi/build.rs +++ b/ffi/build.rs @@ -38,19 +38,17 @@ fn main() { // Check if plist.h exists locally first, otherwise download let plist_h_path = "plist.h"; let h = if std::path::Path::new(plist_h_path).exists() { - std::fs::read_to_string(plist_h_path) - .expect("failed to read plist.h") + std::fs::read_to_string(plist_h_path).expect("failed to read plist.h") } else { // download plist.h let h = ureq::get("https://raw.githubusercontent.com/libimobiledevice/libplist/refs/heads/master/include/plist/plist.h") .call() .expect("failed to download plist.h"); - h - .into_body() + h.into_body() .read_to_string() .expect("failed to get string content") }; - + let mut f = OpenOptions::new().append(true).open("idevice.h").unwrap(); f.write_all(b"\n\n\n").unwrap(); f.write_all(&h.into_bytes())