Skip to content

Commit

Permalink
Fix imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Aug 19, 2024
1 parent a544509 commit 5d99d83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
Expand Down
4 changes: 3 additions & 1 deletion tests/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
Expand Down

0 comments on commit 5d99d83

Please sign in to comment.