mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-12-15 18:11:38 +01:00
chore: Fix all warnings
This commit is contained in:
parent
e62559a966
commit
ed435d6347
42 changed files with 36 additions and 67 deletions
|
|
@ -6,7 +6,6 @@ use crate::components::wifi::saved_wifi_entry_impl;
|
|||
use crate::components::wifi::utils::get_connection_settings;
|
||||
use crate::components::wifi::wifi_box_impl::WifiBox;
|
||||
use crate::components::wifi::wifi_options::WifiOptions;
|
||||
use adw::glib;
|
||||
use adw::glib::Object;
|
||||
use adw::prelude::{ActionRowExt, ButtonExt, PreferencesGroupExt, PreferencesRowExt};
|
||||
use dbus::blocking::Connection;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use std::cell::RefCell;
|
|||
|
||||
use dbus::Path;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, CompositeTemplate};
|
||||
use gtk::CompositeTemplate;
|
||||
|
||||
use super::saved_wifi_entry;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
|
|||
use std::rc::Rc;
|
||||
use std::str::FromStr;
|
||||
|
||||
use adw::glib;
|
||||
use adw::glib::Object;
|
||||
use adw::prelude::PreferencesRowExt;
|
||||
use glib::clone;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use crate::components::wifi::utils::IpProtocol;
|
|||
use crate::components::wifi::wifi_address_entry;
|
||||
use adw::{EntryRow, ExpanderRow};
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, Button, CompositeTemplate};
|
||||
use gtk::{Button, CompositeTemplate};
|
||||
use std::cell::{Cell, RefCell};
|
||||
|
||||
#[derive(Default, CompositeTemplate)]
|
||||
|
|
|
|||
|
|
@ -7,9 +7,8 @@ use std::time::Duration;
|
|||
use crate::components::base::error_impl::{show_error, ReSetErrorImpl};
|
||||
use crate::components::base::utils::Listeners;
|
||||
use crate::components::utils::{set_combo_row_ellipsis, BASE, DBUS_PATH, WIRELESS};
|
||||
use adw::glib;
|
||||
use adw::glib::Object;
|
||||
use adw::prelude::{ComboRowExt, ListBoxRowExt, PreferencesGroupExt, PreferencesRowExt};
|
||||
use adw::prelude::{ComboRowExt, ListBoxRowExt, PreferencesGroupExt};
|
||||
use adw::subclass::prelude::ObjectSubclassIsExt;
|
||||
use dbus::blocking::Connection;
|
||||
use dbus::message::SignalArgs;
|
||||
|
|
@ -17,9 +16,9 @@ use dbus::Error;
|
|||
use dbus::Path;
|
||||
use glib::{clone, Cast, ControlFlow, PropertySet};
|
||||
use gtk::glib::Variant;
|
||||
use gtk::prelude::{ActionableExt, WidgetExt};
|
||||
use gtk::prelude::ActionableExt;
|
||||
use gtk::{gio, StringList, StringObject};
|
||||
use re_set_lib::network::network_structures::{AccessPoint, WifiDevice, WifiStrength};
|
||||
use re_set_lib::network::network_structures::{AccessPoint, WifiDevice};
|
||||
use re_set_lib::signals::{AccessPointAdded, WifiDeviceChanged, WifiDeviceReset};
|
||||
use re_set_lib::signals::{AccessPointChanged, AccessPointRemoved};
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ use crate::components::wifi::wifi_box;
|
|||
use adw::{ActionRow, ComboRow, NavigationView, PreferencesGroup};
|
||||
use dbus::Path;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, CompositeTemplate, Switch};
|
||||
use gtk::{prelude::*, StringList};
|
||||
use gtk::{CompositeTemplate, Switch};
|
||||
use re_set_lib::network::network_structures::WifiDevice;
|
||||
use std::cell::RefCell;
|
||||
use std::collections::HashMap;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ use std::time::Duration;
|
|||
|
||||
use crate::components::utils::{BASE, DBUS_PATH, WIRELESS};
|
||||
use crate::components::wifi::utils::get_connection_settings;
|
||||
use adw::glib;
|
||||
use adw::glib::{Object, PropertySet};
|
||||
use adw::prelude::{ActionRowExt, ButtonExt, EditableExt, PopoverExt, PreferencesRowExt};
|
||||
use adw::subclass::prelude::ObjectSubclassIsExt;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use adw::subclass::preferences_row::PreferencesRowImpl;
|
|||
use adw::subclass::prelude::ActionRowImpl;
|
||||
use adw::ActionRow;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, Button, CompositeTemplate, Image, Label};
|
||||
use gtk::{Button, CompositeTemplate, Image, Label};
|
||||
use re_set_lib::network::network_structures::{AccessPoint, WifiStrength};
|
||||
use std::cell::RefCell;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ use std::str::FromStr;
|
|||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use adw::gio;
|
||||
use adw::glib::Object;
|
||||
use adw::prelude::{ActionRowExt, ComboRowExt, PreferencesGroupExt};
|
||||
use adw::subclass::prelude::ObjectSubclassIsExt;
|
||||
use adw::{gio, glib};
|
||||
use dbus::arg::PropMap;
|
||||
use dbus::{Error, Path};
|
||||
use glib::{clone, PropertySet};
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use adw::{
|
|||
ActionRow, ComboRow, EntryRow, NavigationPage, PasswordEntryRow, PreferencesGroup, SwitchRow,
|
||||
};
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, Button, CompositeTemplate, Label};
|
||||
use gtk::{Button, CompositeTemplate, Label};
|
||||
use re_set_lib::network::connection::Connection;
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
use crate::components::wifi::utils::IpProtocol;
|
||||
use adw::glib;
|
||||
use adw::glib::Object;
|
||||
use adw::prelude::{ExpanderRowExt, PreferencesRowExt};
|
||||
use glib::clone;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use crate::components::wifi::utils::IpProtocol;
|
|||
use crate::components::wifi::wifi_route_entry;
|
||||
use adw::{EntryRow, ExpanderRow};
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, Button, CompositeTemplate};
|
||||
use gtk::{Button, CompositeTemplate};
|
||||
use std::cell::{Cell, RefCell};
|
||||
|
||||
#[derive(Default, CompositeTemplate)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue