From 5d99d8384ae69af8d767d878838d39858991e8dd Mon Sep 17 00:00:00 2001 From: tyranron Date: Mon, 19 Aug 2024 16:10:07 +0300 Subject: [PATCH] Fix imports in tests --- tests/debug.rs | 4 +++- tests/display.rs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/debug.rs b/tests/debug.rs index 68e01042..d88903b3 100644 --- a/tests/debug.rs +++ b/tests/debug.rs @@ -2018,7 +2018,9 @@ mod complex_enum_syntax { mod type_variables { mod our_alloc { #[cfg(not(feature = "std"))] - pub use alloc::{boxed::Box, format, iter, vec, vec::Vec}; + pub use alloc::{boxed::Box, format, vec, vec::Vec}; + #[cfg(not(feature = "std"))] + pub use core::iter; #[cfg(feature = "std")] pub use std::{boxed::Box, format, iter, vec, vec::Vec}; } diff --git a/tests/display.rs b/tests/display.rs index 10f11281..a496af8c 100644 --- a/tests/display.rs +++ b/tests/display.rs @@ -2387,7 +2387,9 @@ mod generic { mod type_variables { mod our_alloc { #[cfg(not(feature = "std"))] - pub use alloc::{boxed::Box, format, iter, vec::Vec}; + pub use alloc::{boxed::Box, format, vec::Vec}; + #[cfg(not(feature = "std"))] + pub use core::iter; #[cfg(feature = "std")] pub use std::{boxed::Box, format, iter, vec::Vec}; }