cargo fmt

This commit is contained in:
Jackson Coxson
2025-12-22 12:26:43 -07:00
parent d8bff83753
commit 328224d46c

View File

@@ -38,15 +38,13 @@ fn main() {
// Check if plist.h exists locally first, otherwise download // Check if plist.h exists locally first, otherwise download
let plist_h_path = "plist.h"; let plist_h_path = "plist.h";
let h = if std::path::Path::new(plist_h_path).exists() { let h = if std::path::Path::new(plist_h_path).exists() {
std::fs::read_to_string(plist_h_path) std::fs::read_to_string(plist_h_path).expect("failed to read plist.h")
.expect("failed to read plist.h")
} else { } else {
// download plist.h // download plist.h
let h = ureq::get("https://raw.githubusercontent.com/libimobiledevice/libplist/refs/heads/master/include/plist/plist.h") let h = ureq::get("https://raw.githubusercontent.com/libimobiledevice/libplist/refs/heads/master/include/plist/plist.h")
.call() .call()
.expect("failed to download plist.h"); .expect("failed to download plist.h");
h h.into_body()
.into_body()
.read_to_string() .read_to_string()
.expect("failed to get string content") .expect("failed to get string content")
}; };