From b95364a1401aeea959ebc2d4825b59ad7df2ebee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 2 Jan 2023 15:55:49 +0100 Subject: [PATCH] dragonball: Allow question_mark warning in allocate_device_resources() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/dragonball/src/resource_manager.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dragonball/src/resource_manager.rs b/src/dragonball/src/resource_manager.rs index ce199918b..b0f96e252 100644 --- a/src/dragonball/src/resource_manager.rs +++ b/src/dragonball/src/resource_manager.rs @@ -420,6 +420,7 @@ impl ResourceManager { } /// Allocate requested resources for a device. + #[allow(clippy::question_mark)] pub fn allocate_device_resources( &self, requests: &[ResourceConstraint],