From 1f035a8d83c6a4e261a7ef0c96f6b6578594e9b4 Mon Sep 17 00:00:00 2001 From: Leon Durrenberger Date: Wed, 4 Dec 2024 16:03:17 -0800 Subject: [PATCH] corrected formatting --- Cargo.toml | 4 +++- crates/wdk-sys/build.rs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 13f6040e..2b9db9de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,9 @@ cfg-if = "1.0.0" clap = "4.5.9" clap-cargo = "0.14.1" itertools = "0.13.0" -once_cell = { version = "1.20.2", default-features = false, features = ["alloc"] } +once_cell = { version = "1.20.2", default-features = false, features = [ + "alloc", +] } paste = "1.0.15" pretty_assertions = "1.4.0" proc-macro2 = "1.0.86" diff --git a/crates/wdk-sys/build.rs b/crates/wdk-sys/build.rs index df24b0d2..bc24e193 100644 --- a/crates/wdk-sys/build.rs +++ b/crates/wdk-sys/build.rs @@ -48,8 +48,8 @@ const WDF_FUNCTION_COUNT_DECLARATION_TABLE_INDEX: &str = " let wdf_function_count = crate::_WDFFUNCENUM::WdfFunctionTableNumEntries as usize;"; static WDF_FUNCTION_TABLE_TEMPLATE: LazyLock = LazyLock::new(|| { - format!( -r#"extern crate alloc; + format!(r#" +extern crate alloc; /// Struct to encapsulate a function table. /// Lazily initializes on access via index operation.