1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 06:41:03 +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

4
Cargo.lock generated
View file

@ -3846,9 +3846,9 @@ dependencies = [
[[package]] [[package]]
name = "wayland-protocols" name = "wayland-protocols"
version = "0.31.0" version = "0.31.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e253d7107ba913923dc253967f35e8561a3c65f914543e46843c88ddd729e21c" checksum = "8f81f365b8b4a97f422ac0e8737c438024b5951734506b0e1d775c73030561f4"
dependencies = [ dependencies = [
"bitflags 2.4.0", "bitflags 2.4.0",
"wayland-backend", "wayland-backend",

View file

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