vhost_user: Fix warning about unsafe not needed
There's no need to specify unsafe given the whole function is already considered unsafe. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
796b9d9dfc
commit
787a424a86
1 changed files with 1 additions and 1 deletions
|
|
@ -356,7 +356,7 @@ impl<R: Req> Endpoint<R> {
|
|||
.take(n)
|
||||
.map(|fd| {
|
||||
// Safe because we have the ownership of `fd`.
|
||||
unsafe { File::from_raw_fd(*fd) }
|
||||
File::from_raw_fd(*fd)
|
||||
})
|
||||
.collect();
|
||||
Some(files)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue