We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c2d615 commit 1d45f05Copy full SHA for 1d45f05
gix-features/tests/hash.rs
@@ -6,14 +6,8 @@ fn size_of_sha1() {
6
assert_eq!(std::mem::size_of::<Sha1>(), 96)
7
}
8
9
-#[cfg(all(feature = "fast-sha1", target_arch = "x86"))]
+#[cfg(feature = "fast-sha1")]
10
#[test]
11
fn size_of_sha1() {
12
- assert_eq!(std::mem::size_of::<Sha1>(), 96)
13
-}
14
-
15
-#[cfg(all(feature = "fast-sha1", not(target_arch = "x86")))]
16
-#[test]
17
-fn size_of_sha1() {
18
- assert_eq!(std::mem::size_of::<Sha1>(), 104)
+ assert_eq!(std::mem::size_of::<Sha1>(), if cfg!(target_arch = "x86") { 96 } else { 104 })
19
0 commit comments