chore: Rust 2024 edition

This commit is contained in:
Vukašin Vojinović 2025-10-05 13:45:37 +02:00 committed by Michael Murphy
parent 3b86984332
commit c31a46961a
31 changed files with 48 additions and 48 deletions

View file

@ -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,

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -5,7 +5,7 @@ use crate::{
access_point::AccessPoint,
interface::{
access_point::AccessPointProxy,
device::{wireless::WirelessDeviceProxy, DeviceProxy},
device::{DeviceProxy, wireless::WirelessDeviceProxy},
enums::{WifiCapabilities, WifiMode},
},
};

View file

@ -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>);

View file

@ -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;