File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
lazy-static.rs
2
2
==============
3
3
4
- ![ travis-ci status ] ( https://travis-ci.org/Kimundi/lazy-static.rs.svg ?branch=master )
4
+ [ ![ Travis-CI Status ] ( https://travis-ci.org/Kimundi/lazy-static.rs.png ?branch=master )] ( https://travis-ci.org/Kimundi/lazy-static.rs )
5
5
6
6
A macro for declaring lazily evaluated statics in Rust.
7
7
@@ -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 . get (& 0 ));
63
+ println! (" The entry for `0` is \ " {}\ " ." , HASHMAP . find (& 0 ) . unwrap ( ));
64
64
println! (" A expensive calculation on a static results in: {}." , * NUMBER );
65
65
}
66
66
```
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ fn times_two(n: uint) -> uint { n * 2 }
56
56
57
57
fn main() {
58
58
println!("The map has {} entries.", *COUNT);
59
- println!("The entry for `0` is \"{}\".", HASHMAP.get (&0));
59
+ println!("The entry for `0` is \"{}\".", HASHMAP.find (&0).unwrap( ));
60
60
println!("A expensive calculation on a static results in: {}.", *NUMBER);
61
61
}
62
62
```
You can’t perform that action at this time.
0 commit comments