Fix warning when libcore is compiled with no_fp_fmt_parse · rust-lang/rust@a3c4c2e (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit a3c4c2e
Fix warning when libcore is compiled with no_fp_fmt_parse
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4,12 +4,14 @@ | ||
4 | 4 | |
5 | 5 | use crate::ascii; |
6 | 6 | use crate::convert::TryInto; |
7 | -use crate::error::Error; | |
8 | 7 | use crate::intrinsics; |
9 | 8 | use crate::mem; |
10 | 9 | use crate::ops::{Add, Mul, Sub}; |
11 | 10 | use crate::str::FromStr; |
12 | 11 | |
12 | +#[cfg(not(no_fp_fmt_parse))] | |
13 | +use crate::error::Error; | |
14 | + | |
13 | 15 | // Used because the `?` operator is not allowed in a const context. |
14 | 16 | macro_rules! try_opt { |
15 | 17 | ($e:expr) => { |