Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2660041

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

File tree

1 file changed

+2
-7
lines changed
Filter options

1 file changed

+2
-7
lines changed

‎src/lib.rs

Copy file name to clipboardExpand all lines: src/lib.rs
+2-7Lines changed: 2 additions & 7 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.