Merge pull request #1 from dhylands/no-std

Make create be no_std
This commit is contained in:
Alex Crichton 2016-12-26 17:58:19 -08:00 committed by GitHub
commit b289bb2a81

View File

@ -26,6 +26,8 @@
//! # fn main() {}
//! ```
#![no_std]
#![doc(html_root_url = "http://alexcrichton.com/cfg-if")]
#![deny(missing_docs)]
#![cfg_attr(test, deny(warnings))]
@ -67,7 +69,7 @@ macro_rules! __cfg_if_apply {
mod tests {
cfg_if! {
if #[cfg(test)] {
use std::option::Option as Option2;
use core::option::Option as Option2;
fn works1() -> Option2<u32> { Some(1) }
} else {
fn works1() -> Option<u32> { None }