summaryrefslogtreecommitdiff
path: root/crates/windows-kernel-rs/src/allocator.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-01-03 14:44:35 -0800
committerFuwn <[email protected]>2022-01-03 14:44:35 -0800
commit9eabeb07cc292c142dc1441af3efb2e36c27dcba (patch)
treefba78e449ea9659973caedc389016fd368ce94fa /crates/windows-kernel-rs/src/allocator.rs
parentchore(windows-kernel-rs): remove unused statement (diff)
downloaddriver-9eabeb07cc292c142dc1441af3efb2e36c27dcba.tar.xz
driver-9eabeb07cc292c142dc1441af3efb2e36c27dcba.zip
fmt(crate): `cargo fmt`
Diffstat (limited to 'crates/windows-kernel-rs/src/allocator.rs')
-rw-r--r--crates/windows-kernel-rs/src/allocator.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/windows-kernel-rs/src/allocator.rs b/crates/windows-kernel-rs/src/allocator.rs
index 9c9f996..f45cb1e 100644
--- a/crates/windows-kernel-rs/src/allocator.rs
+++ b/crates/windows-kernel-rs/src/allocator.rs
@@ -15,7 +15,11 @@ use crate::version::VersionInfo;
/// See issue #52191.
#[alloc_error_handler]
-fn alloc_error(_: Layout) -> ! { loop { x86_64::instructions::hlt() } }
+fn alloc_error(_: Layout) -> ! {
+ loop {
+ x86_64::instructions::hlt()
+ }
+}
lazy_static! {
/// The version of Microsoft Windows that is currently running. This is used by