Skip to content

Commit 1e59df5

Browse files
committed
style: use cargo-fmt
1 parent faaf474 commit 1e59df5

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/command/install.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ pub fn install(manager: String, package: String, silent: bool, verbose: bool) {
1212

1313
let mut install_cmd = gen_install_syntax(manager.clone())
1414
.arg(package)
15-
.stdout(if verbose { std::process::Stdio::inherit() } else { std::process::Stdio::null() })
15+
.stdout(if verbose {
16+
std::process::Stdio::inherit()
17+
} else {
18+
std::process::Stdio::null()
19+
})
1620
.stderr(std::process::Stdio::inherit())
1721
.spawn()
1822
.expect("yu: Failed to execute command");

src/command/reinstall.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ pub fn reinstall(manager: String, package: String, silent: bool, verbose: bool)
1212

1313
let mut reinstall_cmd = gen_reinstall_syntax(manager.clone())
1414
.arg(package)
15-
.stdout(if verbose { std::process::Stdio::inherit() } else { std::process::Stdio::null() })
15+
.stdout(if verbose {
16+
std::process::Stdio::inherit()
17+
} else {
18+
std::process::Stdio::null()
19+
})
1620
.stderr(std::process::Stdio::inherit())
1721
.spawn()
1822
.expect("yu: Failed to execute command");

src/command/uninstall.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ pub fn uninstall(manager: String, package: String, silent: bool, verbose: bool)
1212

1313
let mut uninstall_cmd = gen_uninstall_syntax(manager.clone())
1414
.arg(package)
15-
.stdout(if verbose { std::process::Stdio::inherit() } else { std::process::Stdio::null() })
15+
.stdout(if verbose {
16+
std::process::Stdio::inherit()
17+
} else {
18+
std::process::Stdio::null()
19+
})
1620
.stderr(std::process::Stdio::inherit())
1721
.spawn()
1822
.expect("yu: Failed to execute command");

0 commit comments

Comments
 (0)