Skip to content

Commit

Permalink
Fixed formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger committed Dec 23, 2024
1 parent 96a64aa commit 10af7e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion crates/icy_draw/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ fn main() {
eprintln!("Failed to create log file");
}

unsafe { SETTINGS.character_sets = CharacterSets::default(); }
unsafe {
SETTINGS.character_sets = CharacterSets::default();
}
if let Ok(settings_file) = Settings::get_settings_file() {
if settings_file.exists() {
match Settings::load(&settings_file) {
Expand Down
2 changes: 1 addition & 1 deletion crates/icy_draw/src/ui/main_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ impl<'a> eframe::App for MainWindow<'a> {
}
self.commands[0].apply_key_bindings(&self.key_bindings.key_bindings);
}

if let Err(err) = super::Settings::save() {
println!("Error saving settings: {}", err);
log::error!("Error saving settings: {}", err);
Expand Down
4 changes: 3 additions & 1 deletion crates/icy_draw/src/ui/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ pub struct CharacterSets {

impl Default for CharacterSets {
fn default() -> Self {
Self { character_sets: vec![CharSetMapping::default()] }
Self {
character_sets: vec![CharSetMapping::default()],
}
}
}

Expand Down

0 comments on commit 10af7e1

Please sign in to comment.