From 413c388d5e9e1bea45590585952bb8fe72cbb1a2 Mon Sep 17 00:00:00 2001 From: Kaiyi Li Date: Wed, 14 Feb 2024 15:43:09 -0800 Subject: [PATCH] rustfmt: wrap comments Tests: presubmit Change-Id: Ie759b0b788440986783f3b7de4eeca8d5ceeaa92 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5297986 Reviewed-by: Daniel Verkamp Commit-Queue: Kaiyi Li --- .rustfmt.toml | 2 ++ devices/src/irqchip/apic.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/.rustfmt.toml b/.rustfmt.toml index 63ae5375e7..a6c3ce554b 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1,6 +1,8 @@ imports_granularity = "item" group_imports = "StdExternalCrate" unstable_features = true +wrap_comments = true +comment_width = 100 use_field_init_shorthand = true use_try_shorthand = true edition = "2021" diff --git a/devices/src/irqchip/apic.rs b/devices/src/irqchip/apic.rs index 5dc59a5769..240199e75d 100644 --- a/devices/src/irqchip/apic.rs +++ b/devices/src/irqchip/apic.rs @@ -1331,6 +1331,7 @@ mod tests { // Top 8 bits of ICR high are the destination. a.write(Reg::INTERRUPT_COMMAND_HI as u64, &[0, 0, 0, 42]); + #[rustfmt::skip] let msg = a.write( Reg::INTERRUPT_COMMAND_LO as u64, &[