Skip to content

Commit 6bc1e94

Browse files
committed
fix(vm): restore branch checks after rebase
1 parent 86af155 commit 6bc1e94

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

crates/openshell-cli/src/run.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6116,6 +6116,7 @@ mod tests {
61166116
edge_team_domain: None,
61176117
edge_auth_url: None,
61186118
vm_driver_state_dir: None,
6119+
..Default::default()
61196120
};
61206121

61216122
assert!(!dockerfile_sources_supported_for_gateway(Some(&metadata)));
@@ -6134,6 +6135,7 @@ mod tests {
61346135
edge_team_domain: None,
61356136
edge_auth_url: None,
61366137
vm_driver_state_dir: None,
6138+
..Default::default()
61376139
};
61386140

61396141
assert!(dockerfile_sources_supported_for_gateway(Some(&metadata)));

crates/openshell-driver-vm/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn main() {
114114
e
115115
)
116116
});
117-
let size = fs::metadata(&dst_path).map(|m| m.len()).unwrap_or(0);
117+
let size = fs::metadata(&dst_path).map_or(0, |m| m.len());
118118
println!("cargo:warning=Embedded {src_name}: {size} bytes");
119119
}
120120

0 commit comments

Comments
 (0)