Skip to content

Commit

Permalink
Adapt CI codestyle rustfmt diff
Browse files Browse the repository at this point in the history
  • Loading branch information
klemensn committed Feb 4, 2024
1 parent 269e625 commit 7065a5b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ use daemonize::Daemonize;
#[cfg(unix)]
use log::error;
use log::{info, trace, LevelFilter};
#[cfg(target_os = "openbsd")]
use pledge::pledge;
#[cfg(windows)]
use std::fs;
use structopt::StructOpt;
use tokio::runtime::Runtime;
#[cfg(target_os = "openbsd")]
use pledge::pledge;

#[cfg(feature = "alsa_backend")]
mod alsa_mixer;
Expand Down Expand Up @@ -90,7 +90,11 @@ fn main() -> eyre::Result<()> {
// Start with superset of all potentially required promises.
// Drop later after CLI arguments and configuration files were parsed.
#[cfg(target_os = "openbsd")]
pledge("stdio rpath wpath cpath inet mcast flock chown unix dns proc exec audio", None).unwrap();
pledge(
"stdio rpath wpath cpath inet mcast flock chown unix dns proc exec audio",
None
)
.unwrap();

color_eyre::install().wrap_err("Couldn't initialize error reporting")?;

Expand Down Expand Up @@ -193,7 +197,11 @@ fn main() -> eyre::Result<()> {

// --on-song-change-hook aka. "onevent", run via --shell aka. "shell"
if internal_config.onevent.is_some() {
pledge("stdio rpath wpath cpath inet mcast unix dns proc exec audio", None).unwrap();
pledge(
"stdio rpath wpath cpath inet mcast unix dns proc exec audio",
None
)
.unwrap();
} else {
pledge("stdio rpath wpath cpath inet mcast unix dns audio", None).unwrap();
}
Expand Down

0 comments on commit 7065a5b

Please sign in to comment.