mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-07-28 14:26:59 -07:00
app_server: Replace is_ok() by if let
This commit replaces an `is_ok()` call with a call to `if let`, thereby fixing a clippy warning.
This commit is contained in:
+1
-2
@@ -638,8 +638,7 @@ impl AppServer {
|
||||
thread::spawn(move || {
|
||||
let status = child.wait();
|
||||
|
||||
if status.is_ok() {
|
||||
let status = status.unwrap();
|
||||
if let Ok(status) = status {
|
||||
if status.success() {
|
||||
debug!("successfully passed psk to wg")
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user