diff --git a/src/lib.rs b/src/lib.rs index 57fa291..9ffe735 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 { Some(1) } } else { fn works1() -> Option { None }