We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a093f12 commit eb27c8aCopy full SHA for eb27c8a
src/vmm/src/rpc_interface.rs
@@ -258,7 +258,13 @@ impl<'a> PrebootApiController<'a> {
258
G: Fn(ActionResult),
259
{
260
let mut vm_resources = VmResources::default();
261
- vm_resources.boot_timer = boot_timer_enabled;
+ // Silence false clippy warning. Clippy suggests using
262
+ // VmResources { boot_timer: boot_timer_enabled, ..Default::default() }; but this will
263
+ // generate build errors because VmResources contains private fields.
264
+ #[allow(clippy::field_reassign_with_default)]
265
+ {
266
+ vm_resources.boot_timer = boot_timer_enabled;
267
+ }
268
let mut preboot_controller = PrebootApiController::new(
269
seccomp_filters,
270
instance_info,
0 commit comments