1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 14:51:04 +02:00

refactor: small tidy

This commit is contained in:
Jake Stanger 2024-08-09 23:08:08 +01:00
parent 1e0ab67aac
commit 9d125353c4
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
2 changed files with 4 additions and 5 deletions

View file

@ -17,7 +17,6 @@ use clap::Parser;
use color_eyre::eyre::Result;
use color_eyre::Report;
use dirs::config_dir;
use glib::PropertySet;
use gtk::gdk::Display;
use gtk::prelude::*;
use gtk::Application;
@ -79,7 +78,7 @@ fn run_with_args() {
#[cfg(feature = "schema")]
if args.print_schema {
let schema = schemars::schema_for!(Config);
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
println!("{}", serde_json::to_string_pretty(&schema).expect("to be serializable"));
return;
}
@ -153,7 +152,7 @@ impl Ironbar {
return;
}
running.set(true);
running.store(true, Ordering::Relaxed);
cfg_if! {
if #[cfg(feature = "ipc")] {