8000 move #[cfg(test)] to lib.rs to improve compile time · programmerjake/simple-soft-float@2e5acdd · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e5acdd

Browse files
move #[cfg(test)] to lib.rs to improve compile time
1 parent 75d107b commit 2e5acdd

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/binary_op_test_cases.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: LGPL-2.1-or-later
22
// See Notices.txt for copyright information
3-
#![cfg(test)]
43
#![allow(clippy::cognitive_complexity)]
54
use super::*;
65

src/from_real_algebraic_number_test_cases.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: LGPL-2.1-or-later
22
// See Notices.txt for copyright information
3-
#![cfg(test)]
43
use super::*;
54

65
use ExceptionHandlingMode::*;

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ use std::ops::ShlAssign;
2727
use std::ops::Shr;
2828
use std::ops::ShrAssign;
2929

30+
#[cfg(test)]
3031
mod binary_op_test_cases;
32+
#[cfg(test)]
3133
mod from_real_algebraic_number_test_cases;
3234

3335
#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug)]

0 commit comments

Comments
 (0)
0