Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2024-12-20 09:13:45 +00:00 committed by GitHub
parent 4aab013eb8
commit 07d5a8768d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,8 @@ pub async fn get_active_window(environment: &Environment, config: &Vec<Config>)
{ {
Some(window) => match window.app_id { Some(window) => match window.app_id {
Some(id) => Client::Class(id), Some(id) => Client::Class(id),
None => window.window_properties None => window
.window_properties
.and_then(|window_properties| window_properties.class) .and_then(|window_properties| window_properties.class)
.map_or(Client::Default, Client::Class), .map_or(Client::Default, Client::Class),
}, },