Skip to content

Commit 68d7df7

Browse files
committed
readme, clippy
1 parent 846ba1d commit 68d7df7

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</div>
88

99
> [!WARNING]
10-
> This branch is still in development and may be unstable. Only `systemd` and `journald` is supported at the moment.
10+
> This project is still in development and may be unstable. Only `systemd` and `journald` is supported.
1111
1212
# Install:
1313

@@ -16,12 +16,12 @@
1616
```bash
1717
cargo install crescent-cli
1818
## or
19-
cargo install --git https://github.com/Kyagara/crescent --branch rewrite
19+
cargo install --git https://github.com/Kyagara/crescent
2020
```
2121

2222
# Todo
2323

24-
Reimplementation of features already in the main branch:
24+
Reimplementation of old features:
2525

2626
- Tests.
2727
- `stop` field on profiles and `start` command, a command to be sent to trigger a shutdown of the application.

src/init_systems/systemd.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static USER_DIR: Lazy<String> = Lazy::new(|| {
1919
path
2020
});
2121

22-
const SYSTEM_DIR: &str = concat!("/etc/systemd/system/");
22+
const SYSTEM_DIR: &str = "/etc/systemd/system/";
2323

2424
/// `systemd` implementation.
2525
pub struct Systemd {
@@ -197,10 +197,7 @@ impl InitSystem for Systemd {
197197
}
198198

199199
fn status(&self, raw: bool) -> Result<StatusOutput> {
200-
let output = match self.run_command(vec!["status", &self.service_name]) {
201-
Ok(output) => output,
202-
Err(err) => return Err(err),
203-
};
200+
let output = self.run_command(vec!["status", &self.service_name])?;
204201

205202
let stdout = String::from_utf8(output.stdout)?;
206203
if raw {

0 commit comments

Comments
 (0)