Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkunde committed Jul 21, 2023
1 parent 123f7a3 commit 27b9070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async fn main() {
sys.refresh_all();
let os_version = sys.long_os_version().unwrap_or("".into());
let uptime = sys.uptime();
let units = systemctl::list_units(None, None, None).unwrap_or("".to_string());
let units = systemctl::list_units(None, None, None).unwrap_or(vec!["".into()]);
let full_units: Vec<Unit> = units
.iter()
.map(|u| match Unit::from_systemctl(u) {
Expand Down

0 comments on commit 27b9070

Please sign in to comment.