diff --git a/src/post_login/x.rs b/src/post_login/x.rs index e0414a1..823c3a3 100644 --- a/src/post_login/x.rs +++ b/src/post_login/x.rs @@ -173,14 +173,14 @@ pub fn setup_x( if let Some(mut stdout) = child.stdout.take() { let mut buf = String::new(); - if let Ok(_) = stdout.read_to_string(&mut buf) { + if stdout.read_to_string(&mut buf).is_ok() { error!("X server STDOUT: '''\n{buf}\n'''"); } } if let Some(mut stdout) = child.stdout.take() { let mut buf = String::new(); - if let Ok(_) = stdout.read_to_string(&mut buf) { + if stdout.read_to_string(&mut buf).is_ok() { error!("X server STDERR: '''\n{buf}\n'''"); } }