]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/util/snapshot_vec.rs
use slicing sugar
[rust.git] / src / librustc / util / snapshot_vec.rs
index d68b13aa2ff58587bb28311519a06d5d1a6c644c..8fc95529bc08796f37013b9778f8847b7ea11e5a 100644 (file)
@@ -116,7 +116,7 @@ pub fn start_snapshot(&mut self) -> Snapshot {
     pub fn actions_since_snapshot(&self,
                                   snapshot: &Snapshot)
                                   -> &[UndoLog<T,U>] {
-        self.undo_log.index(&(snapshot.length..))
+        &self.undo_log[snapshot.length..]
     }
 
     fn assert_open_snapshot(&self, snapshot: &Snapshot) {