Skip to content

Commit fdf7a41

Browse files
committed
Assume has_int_exp_fmt; drop autocfg
1 parent 200f50f commit fdf7a41

File tree

3 files changed

+15
-29
lines changed

3 files changed

+15
-29
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,3 @@ std = ["num-bigint?/std", "num-integer/std", "num-traits/std"]
4545
num-bigint-std = ["num-bigint/std"]
4646
num-bigint = ["dep:num-bigint"]
4747
serde = ["dep:serde"]
48-
49-
[build-dependencies]
50-
autocfg = "1.0.0"

build.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/lib.rs

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,24 +2111,21 @@ mod test {
21112111
assert_fmt_eq!(format_args!("{:X}", -half_i8), "FF/2");
21122112
assert_fmt_eq!(format_args!("{:#X}", -half_i8), "0xFF/0x2");
21132113

2114-
#[cfg(has_int_exp_fmt)]
2115-
{
2116-
assert_fmt_eq!(format_args!("{:e}", -_2), "-2e0");
2117-
assert_fmt_eq!(format_args!("{:#e}", -_2), "-2e0");
2118-
assert_fmt_eq!(format_args!("{:+e}", -_2), "-2e0");
2119-
assert_fmt_eq!(format_args!("{:e}", _BILLION), "1e9");
2120-
assert_fmt_eq!(format_args!("{:+e}", _BILLION), "+1e9");
2121-
assert_fmt_eq!(format_args!("{:e}", _BILLION.recip()), "1e0/1e9");
2122-
assert_fmt_eq!(format_args!("{:+e}", _BILLION.recip()), "+1e0/1e9");
2123-
2124-
assert_fmt_eq!(format_args!("{:E}", -_2), "-2E0");
2125-
assert_fmt_eq!(format_args!("{:#E}", -_2), "-2E0");
2126-
assert_fmt_eq!(format_args!("{:+E}", -_2), "-2E0");
2127-
assert_fmt_eq!(format_args!("{:E}", _BILLION), "1E9");
2128-
assert_fmt_eq!(format_args!("{:+E}", _BILLION), "+1E9");
2129-
assert_fmt_eq!(format_args!("{:E}", _BILLION.recip()), "1E0/1E9");
2130-
assert_fmt_eq!(format_args!("{:+E}", _BILLION.recip()), "+1E0/1E9");
2131-
}
2114+
assert_fmt_eq!(format_args!("{:e}", -_2), "-2e0");
2115+
assert_fmt_eq!(format_args!("{:#e}", -_2), "-2e0");
2116+
assert_fmt_eq!(format_args!("{:+e}", -_2), "-2e0");
2117+
assert_fmt_eq!(format_args!("{:e}", _BILLION), "1e9");
2118+
assert_fmt_eq!(format_args!("{:+e}", _BILLION), "+1e9");
2119+
assert_fmt_eq!(format_args!("{:e}", _BILLION.recip()), "1e0/1e9");
2120+
assert_fmt_eq!(format_args!("{:+e}", _BILLION.recip()), "+1e0/1e9");
2121+
2122+
assert_fmt_eq!(format_args!("{:E}", -_2), "-2E0");
2123+
assert_fmt_eq!(format_args!("{:#E}", -_2), "-2E0");
2124+
assert_fmt_eq!(format_args!("{:+E}", -_2), "-2E0");
2125+
assert_fmt_eq!(format_args!("{:E}", _BILLION), "1E9");
2126+
assert_fmt_eq!(format_args!("{:+E}", _BILLION), "+1E9");
2127+
assert_fmt_eq!(format_args!("{:E}", _BILLION.recip()), "1E0/1E9");
2128+
assert_fmt_eq!(format_args!("{:+E}", _BILLION.recip()), "+1E0/1E9");
21322129
}
21332130

21342131
mod arith {

0 commit comments

Comments
 (0)