cloud-hypervisor / fuse-backend-rs

Rust crate for implementing FUSE backends
Apache License 2.0
129 stars 63 forks source link

server: fix cargo build warning #160

Closed bergwolf closed 8 months ago

bergwolf commented 8 months ago

clippy doesn't like the solution proposed by rustc. Let's just use the plain if let statement.

error: unused return value of std::option::Option::<T>::map_or that must be used --> src/api/server/sync_io.rs:93:9 93 hook.map_or((), h h.collect(&in_header)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

= note: if you don't need the returned value, use if let instead = note: -D unused-must-use implied by -D warnings