mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 00:34:40 +01:00
Fix clippy warnings
This commit is contained in:
parent
ea0903c53c
commit
454e27aa9e
3 changed files with 12 additions and 12 deletions
|
@ -21,7 +21,7 @@ pub struct OTP {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl OTP {
|
impl OTP {
|
||||||
const STEAM_CHARS: &str = "23456789BCDFGHJKMNPQRTVWXY";
|
const STEAM_CHARS: &'static str = "23456789BCDFGHJKMNPQRTVWXY";
|
||||||
pub const STEAM_DEFAULT_PERIOD: u32 = 30;
|
pub const STEAM_DEFAULT_PERIOD: u32 = 30;
|
||||||
pub const STEAM_DEFAULT_DIGITS: u32 = 5;
|
pub const STEAM_DEFAULT_DIGITS: u32 = 5;
|
||||||
pub const DEFAULT_COUNTER: u32 = 1;
|
pub const DEFAULT_COUNTER: u32 = 1;
|
||||||
|
|
|
@ -11,14 +11,14 @@ use crate::config;
|
||||||
pub struct Settings(ThreadGuard<gio::Settings>);
|
pub struct Settings(ThreadGuard<gio::Settings>);
|
||||||
|
|
||||||
impl Settings {
|
impl Settings {
|
||||||
const KEY_KEYRINGS_MIGRATED: &str = "keyrings-migrated";
|
const KEY_KEYRINGS_MIGRATED: &'static str = "keyrings-migrated";
|
||||||
const KEY_AUTO_LOCK: &str = "auto-lock";
|
const KEY_AUTO_LOCK: &'static str = "auto-lock";
|
||||||
const KEY_AUTO_LOCK_TIMEOUT: &str = "auto-lock-timeout";
|
const KEY_AUTO_LOCK_TIMEOUT: &'static str = "auto-lock-timeout";
|
||||||
const KEY_WINDOW_WIDTH: &str = "window-width";
|
const KEY_WINDOW_WIDTH: &'static str = "window-width";
|
||||||
const KEY_WINDOW_HEIGHT: &str = "window-height";
|
const KEY_WINDOW_HEIGHT: &'static str = "window-height";
|
||||||
const KEY_IS_MAXIMIZED: &str = "is-maximized";
|
const KEY_IS_MAXIMIZED: &'static str = "is-maximized";
|
||||||
const KEY_DOWNLOAD_FAVICONS: &str = "download-favicons";
|
const KEY_DOWNLOAD_FAVICONS: &'static str = "download-favicons";
|
||||||
const KEY_DOWNLOAD_FAVICONS_METRED: &str = "download-favicons-metered";
|
const KEY_DOWNLOAD_FAVICONS_METRED: &'static str = "download-favicons-metered";
|
||||||
|
|
||||||
pub fn set_keyrings_migrated(&self, keyrings_migrated: bool) -> Result<(), glib::BoolError> {
|
pub fn set_keyrings_migrated(&self, keyrings_migrated: bool) -> Result<(), glib::BoolError> {
|
||||||
self.set_boolean(Self::KEY_KEYRINGS_MIGRATED, keyrings_migrated)
|
self.set_boolean(Self::KEY_KEYRINGS_MIGRATED, keyrings_migrated)
|
||||||
|
|
|
@ -10,14 +10,14 @@ mod url_row;
|
||||||
mod window;
|
mod window;
|
||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
accounts::{AccountAddDialog, QRCodeData},
|
accounts::AccountAddDialog,
|
||||||
camera::{screenshot, Camera},
|
camera::{screenshot, Camera},
|
||||||
camera_row::CameraRow,
|
camera_row::CameraRow,
|
||||||
error_revealer::ErrorRevealer,
|
error_revealer::ErrorRevealer,
|
||||||
keyring_error_dialog::KeyringErrorDialog,
|
keyring_error_dialog::KeyringErrorDialog,
|
||||||
preferences::PreferencesWindow,
|
preferences::PreferencesWindow,
|
||||||
progress_icon::ProgressIcon,
|
progress_icon::ProgressIcon,
|
||||||
providers::{ProviderImage, ProvidersDialog, ProvidersList},
|
providers::{ProviderImage, ProvidersDialog},
|
||||||
url_row::UrlRow,
|
url_row::UrlRow,
|
||||||
window::{View, Window},
|
window::Window,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue