Fix warning when libcore is compiled with no_fp_fmt_parse
This commit is contained in:
parent
01fbc5ae78
commit
a3c4c2ee1d
1 changed files with 3 additions and 1 deletions
|
@ -4,12 +4,14 @@
|
||||||
|
|
||||||
use crate::ascii;
|
use crate::ascii;
|
||||||
use crate::convert::TryInto;
|
use crate::convert::TryInto;
|
||||||
use crate::error::Error;
|
|
||||||
use crate::intrinsics;
|
use crate::intrinsics;
|
||||||
use crate::mem;
|
use crate::mem;
|
||||||
use crate::ops::{Add, Mul, Sub};
|
use crate::ops::{Add, Mul, Sub};
|
||||||
use crate::str::FromStr;
|
use crate::str::FromStr;
|
||||||
|
|
||||||
|
#[cfg(not(no_fp_fmt_parse))]
|
||||||
|
use crate::error::Error;
|
||||||
|
|
||||||
// Used because the `?` operator is not allowed in a const context.
|
// Used because the `?` operator is not allowed in a const context.
|
||||||
macro_rules! try_opt {
|
macro_rules! try_opt {
|
||||||
($e:expr) => {
|
($e:expr) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue