buffer : simpliciation de try_spawn
#6
1 changed files with 2 additions and 4 deletions
|
@ -41,15 +41,13 @@ impl Buffer {
|
|||
|
||||
if result.code().is_some() {
|
||||
return Some(result.code().unwrap());
|
||||
} else {
|
||||
None
|
||||
}
|
||||
} else {
|
||||
eprintln!("{}", result.unwrap_err());
|
||||
return Some(127);
|
||||
}
|
||||
} else {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
|
||||
None
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue