Skip to content

Commit 5e19b43

Browse files
committed
---
yaml --- r: 42870 b: refs/heads/try c: aac9126 h: refs/heads/master v: v3
1 parent 046909e commit 5e19b43

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 1057eea7ac124da94479b4903d5df29c6f6c0660
5+
refs/heads/try: aac91267e3ea650649ee443b042fe04cd502da6c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/libstd/smallintmap.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ mod tests {
174174
use smallintmap::{mk, SmallIntMap};
175175

176176
use core::option::None;
177-
use core::option;
178177

179178
#[test]
180179
fn test_len() {
@@ -214,9 +213,9 @@ mod tests {
214213
map.update_with_key(3, 2, addMoreToCount);
215214

216215
// check the total counts
217-
assert 10 == option::get(map.find(3));
218-
assert 3 == option::get(map.find(5));
219-
assert 1 == option::get(map.find(9));
216+
assert map.find(3).get() == 10;
217+
assert map.find(5).get() == 3;
218+
assert map.find(9).get() == 1;
220219

221220
// sadly, no sevens were counted
222221
assert None == map.find(7);

0 commit comments

Comments
 (0)