From 2bbeeec8cf26c1b165cdc5e6548b28bbc3c1d6a3 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 22 Jun 2024 12:26:04 -0700 Subject: be more careful about what does and doesnt need alloc --- tests/display.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/display.rs b/tests/display.rs index 9a8ef2e..887db53 100644 --- a/tests/display.rs +++ b/tests/display.rs @@ -22,6 +22,23 @@ fn sinks_are_equivalent() { } */ +#[test] +#[allow(deprecated)] +fn formatters_are_not_feature_gated() { + use yaxpeax_arch::display::{ + u8_hex, u16_hex, u32_hex, u64_hex, + signed_i8_hex, signed_i16_hex, signed_i32_hex, signed_i64_hex + }; + let _ = u8_hex(10); + let _ = u16_hex(10); + let _ = u32_hex(10); + let _ = u64_hex(10); + let _ = signed_i8_hex(10); + let _ = signed_i16_hex(10); + let _ = signed_i32_hex(10); + let _ = signed_i64_hex(10); +} + #[cfg(feature="alloc")] #[test] fn display_sink_write_hex_helpers() { -- cgit v1.1