diff options
author | Jerry Trieu <jerry@advancedtelematic.com> | 2016-03-18 18:01:01 +0100 |
---|---|---|
committer | Jerry Trieu <jerry@advancedtelematic.com> | 2016-03-22 14:54:04 +0100 |
commit | 09247c236ce4c5a40b138f9697ef52b95cb86508 (patch) | |
tree | fe3c9dcd1a98d613bb91cbfdde7c7c9595ba66fe /src/genivi/swm.rs | |
parent | 45a04f42cbbfda9b00b2b5ea8919cd191b879ec9 (diff) | |
download | rvi_sota_client-09247c236ce4c5a40b138f9697ef52b95cb86508.tar.gz |
Fix dbus signature and args in genivi/sc.rs
Diffstat (limited to 'src/genivi/swm.rs')
-rw-r--r-- | src/genivi/swm.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/genivi/swm.rs b/src/genivi/swm.rs index 29b1852..a77d98c 100644 --- a/src/genivi/swm.rs +++ b/src/genivi/swm.rs @@ -51,10 +51,11 @@ pub fn send_get_installed_software(config: &DBusConfiguration, e: GetInstalledSo let conn = Connection::get_private(BusType::Session).unwrap(); let msg = conn.send_with_reply_and_block(message, config.timeout).unwrap(); - let arg = try!(msg.get_items().pop().ok_or(())); + let mut args = msg.get_items().into_iter(); + let arg = try!(args.next().ok_or(())); let installed_packages: InstalledPackages = try!(FromMessageItem::from(&arg)); - let arg = try!(msg.get_items().pop().ok_or(())); + let arg = try!(args.next().ok_or(())); let installed_firmware: InstalledFirmwares = try!(FromMessageItem::from(&arg)); Ok(InstalledSoftware { |