Improve code

This commit is contained in:
Alex Kotov 2021-12-05 21:04:36 +05:00
parent 0bbd946e68
commit c48f93482a
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -3,11 +3,9 @@ mod task;
use crate::task::*;
fn main() {
let wm_task_config = TaskConfig::new("polytreewm");
let wm_task = WMTask::start(wm_task_config).unwrap();
let wm_task = WMTask::start(TaskConfig::new("polytreewm")).unwrap();
let wm_task_result = wm_task.wait();
let wm_task_status = wm_task_result.status();
unsafe { libc::exit(wm_task_status) }
unsafe { libc::exit(wm_task_result.status()) }
}
#[derive(Debug)]