Skip to content

Commit 4de3ae7

Browse files
authored
Run endianess-dependent tests under #[cfg(target_endian = "little")] (#452, #451)
1 parent b3df9e9 commit 4de3ae7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/debug.rs

+1
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ mod structs {
784784
}
785785
}
786786

787+
#[cfg(target_endian = "little")]
787788
mod r#unsized {
788789
#[cfg(not(feature = "std"))]
789790
use alloc::format;

tests/display.rs

+1
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,7 @@ mod structs {
786786
}
787787
}
788788

789+
#[cfg(target_endian = "little")]
789790
mod r#unsized {
790791
use super::*;
791792

0 commit comments

Comments
 (0)