diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-18 11:17:40 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-18 11:31:57 -0700 |
| commit | 2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960 (patch) | |
| tree | 683f1e841f369e737e6d0c26fcafe5057531566c /src/libstd/smallintmap.rs | |
| parent | efa6675f1d632f5d524f4a7a18838c6ee1c0c447 (diff) | |
| download | rust-2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960.tar.gz rust-2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960.zip | |
Replace uses of 'unchecked' with 'unsafe'
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 1cb4adac45c..ab4d46d2d8b 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -139,7 +139,7 @@ impl<V: Copy> SmallIntMap<V>: map::Map<uint, V> { impl<V: Copy> SmallIntMap<V>: ops::Index<uint, V> { pure fn index(&&key: uint) -> V { - unchecked { + unsafe { get(self, key) } } |
