chore: fix lints
This commit is contained in:
parent
dfb31f13c1
commit
927dd3a512
4 changed files with 3 additions and 3 deletions
|
|
@ -593,6 +593,7 @@ fn all_system_actions() -> &'static [Action] {
|
|||
}
|
||||
|
||||
fn localize_action(action: &Action) -> String {
|
||||
#[allow(deprecated)]
|
||||
match action {
|
||||
Action::Close => fl!("manage-windows", "close"),
|
||||
Action::Disable => fl!("disabled"),
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ enum PasswordFlag {
|
|||
}
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
enum VpnDialog {
|
||||
pub enum VpnDialog {
|
||||
Error(ErrorKind, String),
|
||||
Password {
|
||||
id: String,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
// Copyright 2023 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use cosmic::iced_core::text::Wrapping;
|
||||
use cosmic_settings_page::{self as page, Section, section};
|
||||
|
||||
use cosmic::widget::{editable_input, list_column, settings, text};
|
||||
|
|
@ -116,7 +115,6 @@ impl Page {
|
|||
}
|
||||
|
||||
fn hostname_submit(&mut self) -> cosmic::app::Task<crate::app::Message> {
|
||||
eprintln!("hostname submit");
|
||||
if self.hostname_input == self.info.device_name {
|
||||
return Task::none();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -957,6 +957,7 @@ fn permission_was_denied(result: &zbus::Error) -> bool {
|
|||
|
||||
// TODO: Should we allow deprecated methods?
|
||||
fn hash_password(password_plain: &str) -> String {
|
||||
#[allow(deprecated)]
|
||||
match get_encrypt_method().as_str() {
|
||||
"SHA512" => sha512_crypt::hash(password_plain).unwrap(),
|
||||
"SHA256" => sha256_crypt::hash(password_plain).unwrap(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue