fix: correct typos in BadSytax and theme_provider log messages

This commit is contained in:
Christian Visintin
2026-02-27 22:30:06 +01:00
parent 4fdaf82314
commit 97a2240cf7
4 changed files with 6 additions and 6 deletions

View File

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

View File

@@ -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!(

View File

@@ -23,7 +23,7 @@ impl ThemeProvider {
pub fn new(theme_path: &Path) -> Result<Self, SerializerError> {
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");

View File

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