hive.rs: Remove unwrap in builder_args()

This commit is contained in:
Zhaofeng Li 2021-08-26 19:59:22 -07:00
parent 886b4c9dea
commit 7cc6552ee3

View file

@ -228,7 +228,7 @@ impl Hive {
async fn builder_args(&self) -> NixResult<Vec<String>> {
let mut options = Vec::new();
if let Some(machines_file) = self.machines_file().await.unwrap() {
if let Some(machines_file) = self.machines_file().await? {
options.append(&mut vec![
"--option".to_owned(),
"builders".to_owned(),