Always use #![no_std], and declare std when enabled

This commit is contained in:
Josh Stone 2018-05-08 17:26:38 -07:00
parent 6edb91f5e8
commit f35cce229e
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@
#![deny(unconditional_recursion)]
#![cfg_attr(not(feature = "std"), no_std)]
#![no_std]
#[cfg(feature = "std")]
extern crate core;
extern crate std;
use core::ops::{Add, Sub, Mul, Div, Rem};
use core::ops::{AddAssign, SubAssign, MulAssign, DivAssign, RemAssign};