diff options
| author | David Lönnhager <david.l@mullvad.net> | 2020-09-22 13:36:39 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2020-09-22 13:36:39 +0200 |
| commit | b5dff59ac9ba2947d9c75e71c0268d9cdb329034 (patch) | |
| tree | c1d8883f60c5f6943d9aba01aa2635e6785f84e2 | |
| parent | f1ec0260733001b316c0180e0a397a35c8dcfddd (diff) | |
| parent | a0cb0636a460999f67363fb2160ee0144fcc3642 (diff) | |
| download | mullvadvpn-b5dff59ac9ba2947d9c75e71c0268d9cdb329034.tar.xz mullvadvpn-b5dff59ac9ba2947d9c75e71c0268d9cdb329034.zip | |
Merge branch 'upgrade-dbus'
| -rw-r--r-- | Cargo.lock | 53 | ||||
| -rw-r--r-- | talpid-core/Cargo.toml | 2 | ||||
| -rw-r--r-- | talpid-core/src/dns/linux/network_manager.rs | 12 | ||||
| -rw-r--r-- | talpid-core/src/dns/linux/systemd_resolved.rs | 28 |
4 files changed, 55 insertions, 40 deletions
diff --git a/Cargo.lock b/Cargo.lock index 0a2aaa9bfb..41b4eba987 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -169,7 +169,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "cc" -version = "1.0.59" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -240,7 +240,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "ascii 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", - "either 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "either 1.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -337,7 +337,7 @@ dependencies = [ [[package]] name = "dbus" -version = "0.6.5" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)", @@ -415,7 +415,7 @@ dependencies = [ [[package]] name = "either" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -747,6 +747,11 @@ version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] +name = "httpdate" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] name = "humantime" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -756,7 +761,7 @@ dependencies = [ [[package]] name = "hyper" -version = "0.13.7" +version = "0.13.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bytes 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -767,10 +772,10 @@ dependencies = [ "http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "http-body 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", + "httpdate 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "itoa 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "pin-project 0.4.23 (registry+https://github.com/rust-lang/crates.io-index)", "socket2 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.44 (registry+https://github.com/rust-lang/crates.io-index)", "tokio 0.2.22 (registry+https://github.com/rust-lang/crates.io-index)", "tower-service 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "tracing 0.1.19 (registry+https://github.com/rust-lang/crates.io-index)", @@ -785,7 +790,7 @@ dependencies = [ "bytes 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", "ct-logs 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.13.7 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.13.8 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", "rustls 0.18.1 (registry+https://github.com/rust-lang/crates.io-index)", "rustls-native-certs 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -828,8 +833,11 @@ dependencies = [ [[package]] name = "instant" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", +] [[package]] name = "ioctl-sys" @@ -857,7 +865,7 @@ name = "itertools" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "either 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "either 1.6.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1243,7 +1251,7 @@ dependencies = [ "filetime 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.13.7 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.13.8 (registry+https://github.com/rust-lang/crates.io-index)", "hyper-rustls 0.21.0 (registry+https://github.com/rust-lang/crates.io-index)", "ipnetwork 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1399,7 +1407,7 @@ version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "cc 1.0.59 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.60 (registry+https://github.com/rust-lang/crates.io-index)", "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)", "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1411,7 +1419,7 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "cc 1.0.59 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.60 (registry+https://github.com/rust-lang/crates.io-index)", "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1523,7 +1531,7 @@ name = "parking_lot" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "instant 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "instant 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", "lock_api 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot_core 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1549,7 +1557,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", "cloudabi 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "instant 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "instant 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)", "redox_syscall 0.1.57 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1897,7 +1905,7 @@ name = "ring" version = "0.16.15" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cc 1.0.59 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.60 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)", "once_cell 1.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "spin 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2297,7 +2305,7 @@ dependencies = [ "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.15 (registry+https://github.com/rust-lang/crates.io-index)", - "dbus 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", + "dbus 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "duct 0.13.4 (registry+https://github.com/rust-lang/crates.io-index)", "err-derive 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2546,7 +2554,7 @@ dependencies = [ "futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "http-body 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.13.7 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.13.8 (registry+https://github.com/rust-lang/crates.io-index)", "percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "pin-project 0.4.23 (registry+https://github.com/rust-lang/crates.io-index)", "prost 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3131,7 +3139,7 @@ dependencies = [ "checksum bumpalo 3.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2e8c087f005730276d1096a652e92a8bacee2e2472bcc9715a74d2bec38b5820" "checksum byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" "checksum bytes 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" -"checksum cc 1.0.59 (registry+https://github.com/rust-lang/crates.io-index)" = "66120af515773fb005778dc07c261bd201ec8ce50bd6e7144c927753fe013381" +"checksum cc 1.0.60 (registry+https://github.com/rust-lang/crates.io-index)" = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c" "checksum cesu8 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" "checksum chrono 0.4.15 (registry+https://github.com/rust-lang/crates.io-index)" = "942f72db697d8767c22d46a598e01f2d3b475501ea43d0db4f16d90259182d0b" @@ -3150,7 +3158,7 @@ dependencies = [ "checksum darling 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0d706e75d87e35569db781a9b5e2416cff1236a47ed380831f959382ccd5f858" "checksum darling_core 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f0c960ae2da4de88a91b2d920c2a7233b400bc33cb28453a2987822d8392519b" "checksum darling_macro 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d9b5a2f4ac4969822c62224815d069952656cadc7084fdca9751e6d959189b72" -"checksum dbus 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)" = "48b5f0f36f1eebe901b0e6bee369a77ed3396334bf3f09abd46454a576f71819" +"checksum dbus 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "22c08adfeb70c940c14d8af988fa854dcb5529e6141f2397e4e0fa4c9375d094" "checksum derive-try-from-primitive 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "81dbd65eb15734b6d50dc6ac86f14f928462be0a5df6bda17761e909071ede5d" "checksum derive_builder 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a2658621297f2cf68762a6f7dc0bb7e1ff2cfd6583daef8ee0fed6f7ec468ec0" "checksum derive_builder_core 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2791ea3e372c8495c0bc2033991d76b512cd799d07491fbd6890124db9458bef" @@ -3158,7 +3166,7 @@ dependencies = [ "checksum dirs 3.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "142995ed02755914747cc6ca76fc7e4583cd18578746716d0508ea6ed558b9ff" "checksum dirs-sys 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "8e93d7f5705de3e49895a2b5e0b8855a1c27f080192ae9c32a6432d50741a57a" "checksum duct 0.13.4 (registry+https://github.com/rust-lang/crates.io-index)" = "f90a9c3a25aafbd538c7d40a53f83c4487ee8216c12d1c8ef2c01eb2f6ea1553" -"checksum either 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cd56b59865bce947ac5958779cfa508f6c3b9497cc762b7e24a12d11ccde2c4f" +"checksum either 1.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" "checksum env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" "checksum err-derive 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "22deed3a8124cff5fa835713fa105621e43bbdc46690c3a6b68328a012d350d4" "checksum errno 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "6eab5ee3df98a279d9b316b1af6ac95422127b1290317e6d18c1743c99418b01" @@ -3197,14 +3205,15 @@ dependencies = [ "checksum http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "28d569972648b2c512421b5f2a405ad6ac9666547189d0c5477a3f200f3e02f9" "checksum http-body 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" "checksum httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" +"checksum httpdate 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47" "checksum humantime 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" -"checksum hyper 0.13.7 (registry+https://github.com/rust-lang/crates.io-index)" = "3e68a8dd9716185d9e64ea473ea6ef63529252e3e27623295a0378a19665d5eb" +"checksum hyper 0.13.8 (registry+https://github.com/rust-lang/crates.io-index)" = "2f3afcfae8af5ad0576a31e768415edb627824129e8e5a29b8bfccb2f234e835" "checksum hyper-rustls 0.21.0 (registry+https://github.com/rust-lang/crates.io-index)" = "37743cc83e8ee85eacfce90f2f4102030d9ff0a95244098d781e9bee4a90abb6" "checksum ident_case 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" "checksum indexmap 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "55e2e4c765aa53a0424761bf9f41aa7a6ac1efa87238f59560640e27fca028f2" "checksum inotify 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4816c66d2c8ae673df83366c18341538f234a26d65a9ecea5c348b453ac1d02f" "checksum inotify-sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "e74a1aa87c59aeff6ef2cc2fa62d41bc43f54952f55652656b18a02fd5e356c0" -"checksum instant 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "5b141fdc7836c525d4d594027d318c84161ca17aaf8113ab1f81ab93ae897485" +"checksum instant 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "63312a18f7ea8760cdd0a7c5aac1a619752a246b833545e3e36d1f81f7cd9e66" "checksum ioctl-sys 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "5e2c4b26352496eaaa8ca7cfa9bd99e93419d3f7983dc6e99c2a35fe9e33504a" "checksum iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" "checksum ipnetwork 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b8eca9f51da27bc908ef3dd85c21e1bbba794edaf94d7841e37356275b82d31e" diff --git a/talpid-core/Cargo.toml b/talpid-core/Cargo.toml index b978fdd5aa..1f374152c6 100644 --- a/talpid-core/Cargo.toml +++ b/talpid-core/Cargo.toml @@ -47,7 +47,7 @@ jnix = { version = "0.2.3", features = ["derive"] } [target.'cfg(target_os = "linux")'.dependencies] -dbus = "0.6" +dbus = "0.9" failure = "0.1" notify = "4.0" resolv-conf = "0.6.1" diff --git a/talpid-core/src/dns/linux/network_manager.rs b/talpid-core/src/dns/linux/network_manager.rs index db58ed6994..f2b2f6d7fb 100644 --- a/talpid-core/src/dns/linux/network_manager.rs +++ b/talpid-core/src/dns/linux/network_manager.rs @@ -1,7 +1,8 @@ use dbus::{ arg::{Append, RefArg, Variant}, - stdintf::*, - BusType, Member, Message, + ffidisp::{stdintf::*, BusType, ConnPath, Connection}, + message::Message, + strings::Member, }; use lazy_static::lazy_static; use std::{ @@ -72,7 +73,7 @@ lazy_static! { } pub struct NetworkManager { - dbus_connection: dbus::Connection, + dbus_connection: Connection, device: Option<dbus::Path<'static>>, settings_backup: Option<HashMap<String, HashMap<String, Variant<Box<dyn RefArg>>>>>, } @@ -80,8 +81,7 @@ pub struct NetworkManager { impl NetworkManager { pub fn new() -> Result<Self> { - let dbus_connection = - dbus::Connection::get_private(BusType::System).map_err(Error::Dbus)?; + let dbus_connection = Connection::get_private(BusType::System).map_err(Error::Dbus)?; let manager = NetworkManager { dbus_connection, device: None, @@ -134,7 +134,7 @@ impl NetworkManager { Ok(()) } - fn as_manager(&self) -> dbus::ConnPath<'_, &dbus::Connection> { + fn as_manager(&self) -> ConnPath<'_, &Connection> { self.dbus_connection .with_path(NM_BUS, NM_OBJECT_PATH, RPC_TIMEOUT_MS) } diff --git a/talpid-core/src/dns/linux/systemd_resolved.rs b/talpid-core/src/dns/linux/systemd_resolved.rs index 1c0d2ae0fb..8039b9b112 100644 --- a/talpid-core/src/dns/linux/systemd_resolved.rs +++ b/talpid-core/src/dns/linux/systemd_resolved.rs @@ -1,7 +1,13 @@ use super::RESOLV_CONF_PATH; use crate::linux::iface_index; use dbus::{ - arg::RefArg, stdintf::*, BusType, Interface, Member, Message, MessageItem, MessageItemArray, + arg::{ + messageitem::{MessageItem, MessageItemArray}, + RefArg, + }, + ffidisp::{stdintf::*, BusType, ConnPath, Connection}, + message::Message, + strings::{Interface, Member}, Signature, }; use lazy_static::lazy_static; @@ -63,17 +69,17 @@ const RPC_TIMEOUT_MS: i32 = 1000; lazy_static! { static ref LINK_INTERFACE: Interface<'static> = - Interface::from_slice(b"org.freedesktop.resolve1.Link").unwrap(); + Interface::from_slice("org.freedesktop.resolve1.Link\0").unwrap(); static ref MANAGER_INTERFACE: Interface<'static> = - Interface::from_slice(b"org.freedesktop.resolve1.Manager").unwrap(); - static ref GET_LINK_METHOD: Member<'static> = Member::from_slice(b"GetLink").unwrap(); - static ref SET_DNS_METHOD: Member<'static> = Member::from_slice(b"SetDNS").unwrap(); - static ref SET_DOMAINS_METHOD: Member<'static> = Member::from_slice(b"SetDomains").unwrap(); - static ref REVERT_METHOD: Member<'static> = Member::from_slice(b"Revert").unwrap(); + Interface::from_slice("org.freedesktop.resolve1.Manager\0").unwrap(); + static ref GET_LINK_METHOD: Member<'static> = Member::from_slice("GetLink\0").unwrap(); + static ref SET_DNS_METHOD: Member<'static> = Member::from_slice("SetDNS\0").unwrap(); + static ref SET_DOMAINS_METHOD: Member<'static> = Member::from_slice("SetDomains\0").unwrap(); + static ref REVERT_METHOD: Member<'static> = Member::from_slice("Revert\0").unwrap(); } pub struct SystemdResolved { - dbus_connection: dbus::Connection, + dbus_connection: Connection, interface_link: Option<(String, dbus::Path<'static>)>, } @@ -81,7 +87,7 @@ impl SystemdResolved { pub fn new() -> Result<Self> { let result = (|| { let dbus_connection = - dbus::Connection::get_private(BusType::System).map_err(Error::ConnectDBus)?; + Connection::get_private(BusType::System).map_err(Error::ConnectDBus)?; let systemd_resolved = SystemdResolved { dbus_connection, interface_link: None, @@ -144,7 +150,7 @@ impl SystemdResolved { } } - fn as_manager_object(&self) -> dbus::ConnPath<'_, &dbus::Connection> { + fn as_manager_object(&self) -> ConnPath<'_, &Connection> { self.dbus_connection .with_path(RESOLVED_BUS, "/org/freedesktop/resolve1", RPC_TIMEOUT_MS) } @@ -152,7 +158,7 @@ impl SystemdResolved { fn as_link_object<'a>( &'a self, link_object_path: dbus::Path<'a>, - ) -> dbus::ConnPath<'a, &'a dbus::Connection> { + ) -> ConnPath<'a, &'a Connection> { self.dbus_connection .with_path(RESOLVED_BUS, link_object_path, RPC_TIMEOUT_MS) } |
