enarx-archive / sallyport

API for the hypervisor-microkernel boundary
Apache License 2.0
7 stars 6 forks source link

fix: clippy error: returning the result of a `let` binding from a block #7

Closed haraldh closed 3 years ago

haraldh commented 3 years ago
error: returning the result of a `let` binding from a block
   --> src/syscall/mod.rs:305:9
    |
175 | /         let ret = match nr as _ {
176 | |             // MemorySyscallHandler
177 | |             libc::SYS_brk => self.brk(a.into()),
178 | |             libc::SYS_mmap => self.mmap(
...   |
302 | |             }
303 | |         };
    | |__________- unnecessary `let` binding
304 |
305 |           ret
    |           ^^^
    |