chore: Rust 2024 edition
This commit is contained in:
parent
3b86984332
commit
c31a46961a
31 changed files with 48 additions and 48 deletions
|
|
@ -13,8 +13,9 @@ use crate::{
|
|||
active_connection::ActiveConnectionProxy,
|
||||
config::{ip4::Ipv4ConfigProxy, ip6::Ipv6ConfigProxy},
|
||||
device::{
|
||||
bluetooth::BluetoothDeviceProxy, tun::TunDeviceProxy, wired::WiredDeviceProxy,
|
||||
wireguard::WireGuardDeviceProxy, wireless::WirelessDeviceProxy, DeviceProxy,
|
||||
DeviceProxy, bluetooth::BluetoothDeviceProxy, tun::TunDeviceProxy,
|
||||
wired::WiredDeviceProxy, wireguard::WireGuardDeviceProxy,
|
||||
wireless::WirelessDeviceProxy,
|
||||
},
|
||||
enums::{DeviceCapabilities, DeviceState, DeviceType},
|
||||
settings::connection::ConnectionSettingsProxy,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use super::Device;
|
||||
use crate::interface::device::{bluetooth::BluetoothDeviceProxy, DeviceProxy};
|
||||
use crate::interface::device::{DeviceProxy, bluetooth::BluetoothDeviceProxy};
|
||||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use super::Device;
|
||||
use crate::interface::device::{tun::TunDeviceProxy, DeviceProxy};
|
||||
use crate::interface::device::{DeviceProxy, tun::TunDeviceProxy};
|
||||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use super::Device;
|
||||
use crate::interface::device::{wired::WiredDeviceProxy, DeviceProxy};
|
||||
use crate::interface::device::{DeviceProxy, wired::WiredDeviceProxy};
|
||||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use super::Device;
|
||||
use crate::interface::device::{wireguard::WireGuardDeviceProxy, DeviceProxy};
|
||||
use crate::interface::device::{DeviceProxy, wireguard::WireGuardDeviceProxy};
|
||||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use crate::{
|
|||
access_point::AccessPoint,
|
||||
interface::{
|
||||
access_point::AccessPointProxy,
|
||||
device::{wireless::WirelessDeviceProxy, DeviceProxy},
|
||||
device::{DeviceProxy, wireless::WirelessDeviceProxy},
|
||||
enums::{WifiCapabilities, WifiMode},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,15 +4,15 @@ use crate::{
|
|||
active_connection::ActiveConnection,
|
||||
device::Device,
|
||||
interface::{
|
||||
NetworkManagerProxy,
|
||||
active_connection::ActiveConnectionProxy,
|
||||
device::DeviceProxy,
|
||||
enums::{NmConnectivityState, NmState},
|
||||
NetworkManagerProxy,
|
||||
},
|
||||
settings::{connection::Connection, NetworkManagerSettings},
|
||||
settings::{NetworkManagerSettings, connection::Connection},
|
||||
};
|
||||
use std::ops::Deref;
|
||||
use zbus::{zvariant::ObjectPath, Result};
|
||||
use zbus::{Result, zvariant::ObjectPath};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct NetworkManager<'a>(NetworkManagerProxy<'a>);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
pub mod connection;
|
||||
|
||||
use self::connection::Connection;
|
||||
use crate::interface::settings::{connection::ConnectionSettingsProxy, SettingsProxy};
|
||||
use crate::interface::settings::{SettingsProxy, connection::ConnectionSettingsProxy};
|
||||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue