Skip to content

Commit 97fe0d8

Browse files
bors[bot]porglezompjaparic
committed
92: Use separate imports instead of {}-grouped imports for better merges r=japaric a=porglezomp Previously every merge would cause conflicts because the {}-group would re-flow, which the merge algorithm can't handle. This will hopefully make rebases and merges go more smoothly while everyone is still adding new modules. Co-authored-by: C Jones <[email protected]> Co-authored-by: Jorge Aparicio <[email protected]>
2 parents 7b9a6c0 + 8c6f70b commit 97fe0d8

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

src/math/mod.rs

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,34 @@ mod sqrtf;
3434
mod trunc;
3535
mod truncf;
3636

37-
pub use self::{
38-
ceilf::ceilf, cosf::cosf, expf::expf, fabs::fabs, fabsf::fabsf, floor::floor, floorf::floorf,
39-
fmodf::fmodf, hypot::hypot, hypotf::hypotf, log::log, log10::log10, log10f::log10f,
40-
log1p::log1p, log1pf::log1pf, log2::log2, log2f::log2f, logf::logf, powf::powf, round::round,
41-
roundf::roundf, scalbn::scalbn, scalbnf::scalbnf, sqrt::sqrt, sqrtf::sqrtf, trunc::trunc,
42-
truncf::truncf,
43-
};
37+
// Use separated imports instead of {}-grouped imports for easier merging.
38+
pub use self::ceilf::ceilf;
39+
pub use self::cosf::cosf;
40+
pub use self::expf::expf;
41+
pub use self::fabs::fabs;
42+
pub use self::fabsf::fabsf;
43+
pub use self::floor::floor;
44+
pub use self::floorf::floorf;
45+
pub use self::fmodf::fmodf;
46+
pub use self::hypot::hypot;
47+
pub use self::hypotf::hypotf;
48+
pub use self::log::log;
49+
pub use self::log10::log10;
50+
pub use self::log10f::log10f;
51+
pub use self::log1p::log1p;
52+
pub use self::log1pf::log1pf;
53+
pub use self::log2::log2;
54+
pub use self::log2f::log2f;
55+
pub use self::logf::logf;
56+
pub use self::powf::powf;
57+
pub use self::round::round;
58+
pub use self::roundf::roundf;
59+
pub use self::scalbn::scalbn;
60+
pub use self::scalbnf::scalbnf;
61+
pub use self::sqrt::sqrt;
62+
pub use self::sqrtf::sqrtf;
63+
pub use self::trunc::trunc;
64+
pub use self::truncf::truncf;
4465

4566
mod k_cosf;
4667
mod k_sinf;

0 commit comments

Comments
 (0)