From ac551c9bc8bd065d5f1d1053ebece39acab6682f Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Sat, 23 Aug 2025 09:48:17 -0600 Subject: [PATCH] Macro plist creation in tss --- idevice/src/tss.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/idevice/src/tss.rs b/idevice/src/tss.rs index df7491c..46ff2cb 100644 --- a/idevice/src/tss.rs +++ b/idevice/src/tss.rs @@ -30,13 +30,11 @@ impl TSSRequest { /// - Client version string /// - Random UUID for request identification pub fn new() -> Self { - let mut inner = plist::Dictionary::new(); - inner.insert("@HostPlatformInfo".into(), "mac".into()); - inner.insert("@VersionInfo".into(), TSS_CLIENT_VERSION_STRING.into()); - inner.insert( - "@UUID".into(), - uuid::Uuid::new_v4().to_string().to_uppercase().into(), - ); + let inner = crate::plist!(dict { + "@HostPlatformInfo": "mac", + "@VersionInfo": TSS_CLIENT_VERSION_STRING, + "@UUID": uuid::Uuid::new_v4().to_string().to_uppercase() + }); Self { inner } }