From b6deb8f79ce43ed8e14c7a5fda2d790848ef905a Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 3 Dec 2024 15:35:02 -0600 Subject: [PATCH] readme test --- crates/libs/bindgen/readme.md | 4 ++-- crates/tests/misc/readme/src/bindings.rs | 15 --------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 crates/tests/misc/readme/src/bindings.rs diff --git a/crates/libs/bindgen/readme.md b/crates/libs/bindgen/readme.md index e20ea318f5..4effe2da2b 100644 --- a/crates/libs/bindgen/readme.md +++ b/crates/libs/bindgen/readme.md @@ -18,7 +18,7 @@ version = "0.58" Generate Rust bindings in a build script as follows: -```rust +```rust,no_run fn main() { let args = [ "--out", @@ -34,7 +34,7 @@ fn main() { And then use the bindings as follows: -```rust +```rust,ignore mod bindings; fn main() { diff --git a/crates/tests/misc/readme/src/bindings.rs b/crates/tests/misc/readme/src/bindings.rs deleted file mode 100644 index e5cdef568d..0000000000 --- a/crates/tests/misc/readme/src/bindings.rs +++ /dev/null @@ -1,15 +0,0 @@ -// Bindings generated by `windows-bindgen` 0.58.0 - -#![allow( - non_snake_case, - non_upper_case_globals, - non_camel_case_types, - dead_code, - clippy::all -)] - -#[inline] -pub unsafe fn GetTickCount() -> u32 { - windows_targets::link!("kernel32.dll" "system" fn GetTickCount() -> u32); - GetTickCount() -}