diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-19 11:37:00 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-19 11:38:28 -0700 |
| commit | 10612ee30c31d33885f233c3e5839574fdb8be80 (patch) | |
| tree | cc25d2361e27749bdc9cb17453cae82b9b9519a4 /src/libstd | |
| parent | c97944fbf810720c2bcb0ccbe1c3149a3d9be4c0 (diff) | |
Remove superfluous by-ref in option::get, option::get_default, option::expect
Superficial change, no review.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs index 9f78f98fa31..e49f1abd02b 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -723,7 +723,7 @@ mod tests { let map = map::HashMap::<~str, ~str>(); assert (option::is_none(&map.find(key))); map.insert(key, ~"val"); - assert (option::get(&map.find(key)) == ~"val"); + assert (option::get(map.find(key)) == ~"val"); } #[test] |
