Skip to content

Commit

Permalink
cleanup: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Mar 8, 2023
1 parent bb558aa commit cfdb8ad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cosmic-bg-config/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: MPL-2.0-only

use std::{
path::PathBuf,
};
use std::path::PathBuf;

use cosmic_config::{Config, ConfigGet};
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -132,7 +130,11 @@ impl CosmicBgConfig {
} else {
if backgrounds.iter().all(|e| e.output != CosmicBgOutput::All) {
// add the default all wallpaper if all is not already present
if let Some(def_all) = def.backgrounds.iter().find(|e| e.output == CosmicBgOutput::All) {
if let Some(def_all) = def
.backgrounds
.iter()
.find(|e| e.output == CosmicBgOutput::All)
{
backgrounds.push(def_all.clone());
}
}
Expand Down

0 comments on commit cfdb8ad

Please sign in to comment.