Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rgwood committed May 25, 2024
1 parent 5b59e3b commit 23900c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct App {
}

impl App {
pub fn new(scope: Scope, limit_units : Vec<String>) -> Result<Self> {
pub fn new(scope: Scope, limit_units: Vec<String>) -> Result<Self> {
let home = Home::new(scope, &limit_units);
let home = Arc::new(Mutex::new(home));
Ok(Self { scope, home, limit_units, should_quit: false, should_suspend: false })
Expand Down
3 changes: 2 additions & 1 deletion src/systemd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ pub async fn get_all_services(scope: Scope, services: &[String]) -> Result<Vec<U
units.extend(user_units);
},
Scope::All => {
let (system_units, user_units) = tokio::join!(get_services(UnitScope::Global, services), get_services(UnitScope::User, services));
let (system_units, user_units) =
tokio::join!(get_services(UnitScope::Global, services), get_services(UnitScope::User, services));
units.extend(system_units?);

// Should always be able to get user units, but it may fail when running as root
Expand Down

0 comments on commit 23900c2

Please sign in to comment.