From 26b27514ce8d513dfeb13098a01e0ee70bc5c296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Fri, 14 Jun 2024 08:57:52 +0200 Subject: [PATCH] Adapt to new never type fallback by explicitly stating unit types --- talpid-dbus/src/network_manager.rs | 7 +++++-- talpid-dbus/src/systemd_resolved.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/talpid-dbus/src/network_manager.rs b/talpid-dbus/src/network_manager.rs index b2787bf4a228..7b6622cb1ddc 100644 --- a/talpid-dbus/src/network_manager.rs +++ b/talpid-dbus/src/network_manager.rs @@ -574,8 +574,11 @@ impl NetworkManager { settings: Settings, version_id: u64, ) -> Result<()> { - self.as_path(device) - .method_call(NM_DEVICE, "Reapply", (settings, version_id, 0u32))?; + self.as_path(device).method_call::<(), _, _, _>( + NM_DEVICE, + "Reapply", + (settings, version_id, 0u32), + )?; Ok(()) } diff --git a/talpid-dbus/src/systemd_resolved.rs b/talpid-dbus/src/systemd_resolved.rs index d9ec4a5d2415..31e24008df6f 100644 --- a/talpid-dbus/src/systemd_resolved.rs +++ b/talpid-dbus/src/systemd_resolved.rs @@ -322,7 +322,7 @@ impl SystemdResolved { // replaced in systemd-resolved. // v248.3 link_object - .method_call( + .method_call::<(), _, _, _>( LINK_INTERFACE, SET_DNS_METHOD, (Vec::<(i32, Vec)>::new(),),