From 261a81aa6f6c6910d650ebf1b1533b01152a3e5c Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 6 Aug 2023 12:54:44 -0400 Subject: [PATCH] chore: Run cargo fmt --- src/lib.rs | 2 +- src/main.rs | 5 ++++- tests/release.rs | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 74c57b9..36749f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,7 +75,7 @@ pub fn special_only_has_one_visible_window() -> bool { for workspace in Workspaces::get().unwrap() { if workspace.id == id { - return workspace.windows == 1 + return workspace.windows == 1; } } diff --git a/src/main.rs b/src/main.rs index ef418a7..4496aa5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,7 +61,10 @@ fn main() -> hyprland::Result<()> { let in_special_workspace: Arc> = Arc::new(Mutex::new(is_special())); // Initialize with dim so the user sees something, but only if the user wants dim - if is_special() && (ignore_entering_special || no_dim_when_only) && special_only_has_one_visible_window() { + if is_special() + && (ignore_entering_special || no_dim_when_only) + && special_only_has_one_visible_window() + { Keyword::set("decoration:dim_strength", 0)?; Keyword::set("decoration:dim_inactive", "yes")?; } else { diff --git a/tests/release.rs b/tests/release.rs index 5daa2ac..19a6d58 100644 --- a/tests/release.rs +++ b/tests/release.rs @@ -1,7 +1,7 @@ +use assert_cmd::Command; use rustympkglib::pkgdata::PkgData; -use std::fs; use serde::Deserialize; -use assert_cmd::Command; +use std::fs; #[derive(Debug, Deserialize)] struct Config {