-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vhost-user-backend: fix clippy warnings
New clippy version in the CI highlighted some code to improve. This patch is generated using `clippy --fix ...`. Fixed 2 type of warnings: 1 - error: the following explicit lifetimes could be elided: 'a --> vhost-user-backend/src/bitmap.rs:109:6 | 109 | impl<'a> WithBitmapSlice<'a> for BitmapMmapRegion { 2 - error: unnecessary closure used to substitute value for `Option::None` --> vhost-user-backend/src/handler.rs:356:21 | 356 | let vring = self | _____________________^ 357 | | .vrings 358 | | .get(index as usize) 359 | | .ok_or_else(|| VhostUserError::InvalidParam)?; Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
- Loading branch information
1 parent
4f33b98
commit f936944
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters