From da2898213fc12ca7d0e29f5b3fcea1aa516c5179 Mon Sep 17 00:00:00 2001 From: Marijn Schouten Date: Sat, 4 Jul 2026 12:41:27 +0000 Subject: [PATCH] use std const assertions instead of crate static_assertions --- Cargo.toml | 1 - tests/constants.rs | 10 ++++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e5592ecc9..181f91412 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,6 @@ version = "1" [dev-dependencies] libc = "0.2" -static_assertions = "1.1" [package.metadata.docs.rs] all-features = true diff --git a/tests/constants.rs b/tests/constants.rs index b367c50cb..04621a952 100644 --- a/tests/constants.rs +++ b/tests/constants.rs @@ -1,9 +1,7 @@ #[cfg(all(test, unix))] mod unix { - use static_assertions::const_assert_eq; - - const_assert_eq!(libloading::os::unix::RTLD_LOCAL, libc::RTLD_LOCAL); - const_assert_eq!(libloading::os::unix::RTLD_GLOBAL, libc::RTLD_GLOBAL); - const_assert_eq!(libloading::os::unix::RTLD_NOW, libc::RTLD_NOW); - const_assert_eq!(libloading::os::unix::RTLD_LAZY, libc::RTLD_LAZY); + const _: () = assert!(libloading::os::unix::RTLD_LOCAL == libc::RTLD_LOCAL); + const _: () = assert!(libloading::os::unix::RTLD_GLOBAL == libc::RTLD_GLOBAL); + const _: () = assert!(libloading::os::unix::RTLD_NOW == libc::RTLD_NOW); + const _: () = assert!(libloading::os::unix::RTLD_LAZY == libc::RTLD_LAZY); }