diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-29 23:44:52 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-02 15:49:49 -0800 |
| commit | 3ed6f6520f56204f1c7c799ec8fa231bef0fb4d1 (patch) | |
| tree | 4b8cb49db4cbf3fa3bb7a88ba72f821d4c00dba9 /src/libstd/smallintmap.rs | |
| parent | 47e7a05a28c9662159af2d2e0f2b7efc13fa09cb (diff) | |
core: Remove _mut functions from vec
Instead, use vec::to_mut/from_mut to transform vectors in place as needed.
Diffstat (limited to 'src/libstd/smallintmap.rs')
| -rw-r--r-- | src/libstd/smallintmap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index d76e37e5071..b608ddf4a64 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -73,7 +73,7 @@ fn contains_key<T: copy>(m: smallintmap<T>, key: uint) -> bool { // FIXME: Are these really useful? fn truncate<T: copy>(m: smallintmap<T>, len: uint) { - m.v = vec::slice_mut::<option<T>>(m.v, 0u, len); + m.v = vec::to_mut(vec::slice::<option<T>>(m.v, 0u, len)); } fn max_key<T>(m: smallintmap<T>) -> uint { |
