Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Journeycorner committed Nov 4, 2024
1 parent 8678713 commit d76bc91
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/systemctl.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,7 @@ impl SystemCtl {

for l in lines {
// fixes format for not found units
let slice = if l.starts_with("● ") {
&l[3..]
} else {
l
};
let slice = if l.starts_with("● ") { &l[3..] } else { l };

let parsed: Vec<&str> = slice.split_ascii_whitespace().collect();

Expand Down

0 comments on commit d76bc91

Please sign in to comment.