Skip to content

Commit 2660041

Browse files
authored
Merge pull request #206 from TheBotlyNoob/master
remove redundant code
2 parents 6ace970 + fb43d94 commit 2660041

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/lib.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,15 @@ This crate provides one cargo feature:
9797
#![doc(html_root_url = "https://docs.rs/lazy_static/1.5.0")]
9898
#![no_std]
9999

100-
#[cfg(not(feature = "spin_no_std"))]
101-
#[path = "inline_lazy.rs"]
102-
#[doc(hidden)]
103-
pub mod lazy;
104-
105100
#[cfg(doctest)]
106101
#[macro_use]
107102
extern crate doc_comment;
108103

109104
#[cfg(doctest)]
110105
doctest!("../README.md");
111106

112-
#[cfg(feature = "spin_no_std")]
113-
#[path = "core_lazy.rs"]
107+
#[cfg_attr(feature = "spin_no_std", path = "core_lazy.rs")]
108+
#[cfg_attr(not(feature = "spin_no_std"), path = "inline_lazy.rs")]
114109
#[doc(hidden)]
115110
pub mod lazy;
116111

0 commit comments

Comments
 (0)