mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
dragonball: Allow question_mark warning in allocate_device_resources()
As the rust toolchain version bump to its 1.66.0 release raised a warning about the code being able to be refactored to use `?`. For now that's something we don't need to change, so let's ignore such warning in this very specific case. See: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
0b2f060bf3
commit
b95364a140
@ -420,6 +420,7 @@ impl ResourceManager {
|
||||
}
|
||||
|
||||
/// Allocate requested resources for a device.
|
||||
#[allow(clippy::question_mark)]
|
||||
pub fn allocate_device_resources(
|
||||
&self,
|
||||
requests: &[ResourceConstraint],
|
||||
|
Loading…
Reference in New Issue
Block a user