From c547d30bd7f869ec0f4f93329e1a39923152c76b Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Wed, 22 Jan 2025 22:54:00 -0700 Subject: [PATCH] Don't expect existing number value in return plist --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0a533f6..a1347bb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -483,7 +483,7 @@ async fn handle_stream( error!("Unable to connect to device {device_id} port {connection_port}: {e:?}"); let mut p = plist::Dictionary::new(); p.insert("MessageType".into(), "Result".into()); - p.insert("Number".into(), 1.into()).unwrap(); + p.insert("Number".into(), 1.into()); let res = RawPacket::new(p, 1, 8, parsed.tag); let res: Vec = res.into();