提交 100368ab 编写于 作者: K Kevin Cantu 提交者: Brian Anderson

Confirm demoding of smallintmap.rs

上级 3283b137
......@@ -2,6 +2,9 @@
* A simple map based on a vector for small integer keys. Space requirements
* are O(highest integer key).
*/
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];
use core::option;
use core::option::{Some, None};
use dvec::DVec;
......@@ -26,7 +29,7 @@ fn mk<T: copy>() -> smallintmap<T> {
* the specified key then the original value is replaced.
*/
#[inline(always)]
fn insert<T: copy>(self: smallintmap<T>, key: uint, val: T) {
fn insert<T: copy>(self: smallintmap<T>, key: uint, +val: T) {
//io::println(fmt!("%?", key));
self.v.grow_set_elt(key, None, Some(val));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册