File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ language: rust
22matrix :
33 include :
44 - rust : 1.27.2
5+ script :
6+ - cargo test --all-targets
57 - rust : stable
68 script :
79 - cargo test
Original file line number Diff line number Diff line change @@ -39,9 +39,7 @@ lazy_static = "1.4.0"
3939# Example
4040
4141``` rust
42- #[macro_use]
43- extern crate lazy_static;
44-
42+ use lazy_static :: lazy_static;
4543use std :: collections :: HashMap ;
4644
4745lazy_static! {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ lazy_static! {
2727Attributes (including doc comments) are supported as well:
2828
2929```rust
30- # #[macro_use]
31- # extern crate lazy_static;
30+ use lazy_static::lazy_static;
31+
3232# fn main() {
3333lazy_static! {
3434 /// This is an example for using doc comment attributes
@@ -58,9 +58,7 @@ have generally the same properties as regular "static" variables:
5858Using the macro:
5959
6060```rust
61- #[macro_use]
62- extern crate lazy_static;
63-
61+ use lazy_static::lazy_static;
6462use std::collections::HashMap;
6563
6664lazy_static! {
@@ -195,8 +193,7 @@ pub trait LazyStatic {
195193/// Example:
196194///
197195/// ```rust
198- /// #[macro_use]
199- /// extern crate lazy_static;
196+ /// use lazy_static::lazy_static;
200197///
201198/// lazy_static! {
202199/// static ref BUFFER: Vec<u8> = (0..255).collect();
You can’t perform that action at this time.
0 commit comments