We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54c52ed commit 6d214f0Copy full SHA for 6d214f0
src/fs/uhyve.rs
@@ -234,10 +234,9 @@ pub(crate) fn init() {
234
info!("Try to initialize uhyve filesystem");
235
if is_uhyve() {
236
let mount_str = env::fdt().and_then(|fdt| {
237
- fdt.find_node("/uhyve,mounts").and_then(|node| {
238
- node.property("mounts")
239
- .and_then(|property| str::from_utf8(property.value).ok())
240
- })
+ fdt.find_node("/uhyve,mounts")
+ .and_then(|node| node.property("mounts"))
+ .and_then(|property| property.as_str())
241
});
242
if let Some(mount_str) = mount_str {
243
assert_ne!(mount_str.len(), 0, "Invalid /uhyve,mounts node in FDT");
0 commit comments