chore: fix lints

This commit is contained in:
Michael Aaron Murphy 2025-08-13 12:29:28 +02:00
parent dfb31f13c1
commit 927dd3a512
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
4 changed files with 3 additions and 3 deletions

View file

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

View file

@ -163,7 +163,7 @@ enum PasswordFlag {
}
#[derive(Clone, Debug, Eq, PartialEq)]
enum VpnDialog {
pub enum VpnDialog {
Error(ErrorKind, String),
Password {
id: String,

View file

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

View file

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