File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
target
2
2
doc
3
3
Cargo.lock
4
+ .cargo
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " lazy_static"
4
- version = " 0.1.0 "
4
+ version = " 0.1.1 "
5
5
6
6
7
+
8
+ # A short blurb about the package. This is not rendered in any format when
9
+ # uploaded to crates.io (aka this is not markdown)
10
+ description = " A macro for declaring lazily evaluated statics in Rust."
11
+
12
+ # These URLs point to more information about the repository
13
+ documentation = " http://rust-ci.org/Kimundi/lazy-static.rs/doc/lazy_static/"
14
+ repository = " https://github.com/Kimundi/lazy-static.rs"
15
+
16
+ # This points to a file in the repository (relative to this Cargo.toml). The
17
+ # contents of this file are stored and indexed in the registry.
18
+ readme = " README.md"
19
+
20
+ # This is a small list of keywords used to categorize and search for this
21
+ # package.
22
+ keywords = [" macro" , " lazy" , " static" ]
23
+
24
+ # This is a string description of the license for this package. Currently
25
+ # crates.io will validate the license provided against a whitelist of known
26
+ # licenses. Multiple licenses can be separated with a `/`
27
+ license = " MIT"
28
+
7
29
[lib ]
8
30
9
31
name = " lazy_static"
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ fn times_two(n: uint) -> uint { n * 2 }
60
60
61
61
fn main () {
62
62
println! (" The map has {} entries." , * COUNT );
63
- println! (" The entry for `0` is \ " {}\ " ." , HASHMAP . find (& 0 ). unwrap ());
63
+ println! (" The entry for `0` is \ " {}\ " ." , HASHMAP . get (& 0 ). unwrap ());
64
64
println! (" A expensive calculation on a static results in: {}." , * NUMBER );
65
65
}
66
66
```
You can’t perform that action at this time.
0 commit comments