diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-06-17 22:31:27 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-06-17 22:31:27 -0400 |
commit | 76b90acb735d3ed2b3052abc1d2403287af83619 (patch) | |
tree | 857de2ebee3d2b6ea802aa1ef249ea34bb0e0908 /src/systemd/journal.rs | |
parent | 1e5f237c20310cbf6ace17b6a7b05298429aca46 (diff) |
rustfmt: Reformatted all the code.
Diffstat (limited to 'src/systemd/journal.rs')
-rw-r--r-- | src/systemd/journal.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/systemd/journal.rs b/src/systemd/journal.rs index 86791ab..fa01c49 100644 --- a/src/systemd/journal.rs +++ b/src/systemd/journal.rs @@ -3,8 +3,7 @@ use std::io; pub fn get_log(unit: &str, lines: i32) -> io::Result<String> { let status = try!(Command::new("journalctl") - .args(&["-u", unit, - "-n", &lines.to_string()]) - .output()); + .args(&["-u", unit, "-n", &lines.to_string()]) + .output()); Ok(String::from_utf8_lossy(&status.stdout).into_owned()) } |