Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History API #11220

Closed
wants to merge 10 commits into from
Prev

fix tidy

  • Loading branch information
cbrewster committed May 28, 2016
commit d5a040c798e88d70315254db1a2f017f85b8eca7
@@ -1528,9 +1528,10 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
None => return warn!("Navigate message received after root's closure."),
};

let frame_ids = self.get_history_iter(Some(top_frame_id), NavigationDirection::Forward(0)).collect::<Vec<FrameId>>();
let frame_ids = self.get_history_iter(Some(top_frame_id), NavigationDirection::Forward(0))
.collect::<Vec<FrameId>>();

for frame_id in &frame_ids {
for frame_id in frame_ids {
let (evicted_frames, id) = match self.frames.get_mut(&frame_id) {
Some(frame) => (replace(&mut frame.next, vec!()), frame.current.id),
None => return warn!("frame forward history removed after closure"),
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.