diff --git a/src/system/keys/keyringstorage.rs b/src/system/keys/keyringstorage.rs index 9f980ac..69293e8 100644 --- a/src/system/keys/keyringstorage.rs +++ b/src/system/keys/keyringstorage.rs @@ -37,7 +37,7 @@ impl KeyStorage for KeyringStorage { | KeyringError::Invalid(_, _) | KeyringError::Ambiguous(_) => Err(KeyStorageError::ProviderError), KeyringError::BadEncoding(_) | KeyringError::TooLong(_, _) => { - Err(KeyStorageError::BadSytax) + Err(KeyStorageError::BadSyntax) } _ => Err(KeyStorageError::ProviderError), }, diff --git a/src/system/keys/mod.rs b/src/system/keys/mod.rs index 57874dd..513cc5a 100644 --- a/src/system/keys/mod.rs +++ b/src/system/keys/mod.rs @@ -13,7 +13,7 @@ use thiserror::Error; #[derive(Debug, Error)] pub enum KeyStorageError { #[error("Key has a bad syntax")] - BadSytax, + BadSyntax, #[error("Provider service error")] ProviderError, #[error("No such key")] @@ -54,7 +54,7 @@ mod tests { #[test] fn test_system_keys_mod_errors() { assert_eq!( - KeyStorageError::BadSytax.to_string(), + KeyStorageError::BadSyntax.to_string(), String::from("Key has a bad syntax") ); assert_eq!( diff --git a/src/system/theme_provider.rs b/src/system/theme_provider.rs index 7190e96..ecd6279 100644 --- a/src/system/theme_provider.rs +++ b/src/system/theme_provider.rs @@ -23,7 +23,7 @@ impl ThemeProvider { pub fn new(theme_path: &Path) -> Result { let default_theme: Theme = Theme::default(); info!( - "Setting up theme provider with thene path {} ", + "Setting up theme provider with theme path {}", theme_path.display(), ); // Create provider @@ -42,7 +42,7 @@ impl ThemeProvider { } else { // otherwise Load configuration from file if let Err(err) = provider.load() { - error!("Couldn't read thene file: {}", err); + error!("Couldn't read theme file: {}", err); return Err(err); } debug!("Read theme file"); diff --git a/src/ui/activities/setup/view/theme.rs b/src/ui/activities/setup/view/theme.rs index b546417..d28601f 100644 --- a/src/ui/activities/setup/view/theme.rs +++ b/src/ui/activities/setup/view/theme.rs @@ -12,7 +12,7 @@ use super::{Context, Id, IdCommon, IdTheme, SetupActivity, Theme, ViewLayout, co impl SetupActivity { // -- view - /// Initialize thene view + /// Initialize theme view pub(super) fn init_theme(&mut self) { // Init view (and mount commons) self.new_app(ViewLayout::Theme);