pub fn undo_split(&mut self) {
        if self.phase != NotRunning && self.current_split_index > Some(0) {
            if self.phase == Ended {
                self.phase = Running;
            }
            self.current_split_index = self.current_split_index.map(|i| i - 1);
            self.current_split_mut().unwrap().clear_split_time();
            self.run.mark_as_modified();

            // FIXME: OnUndoSplit
        }
    }
/// Removes the split time from the last split if an attempt is in progress
/// and there is a previous split. The Timer Phase also switches to
/// `Running` if it previously was `Ended`.
Removes the split time from the last split if an attempt is in progress
and there is a previous split. The Timer Phase also switches to
`Running` if it previously was `Ended`.
Removes the split time from the last split if an attempt is in progress and there is a previous split . The Timer Phase also switches to ` Running ` if it previously was ` Ended ` .
pub fn undo_split(&mut self) {
        if self.phase != NotRunning && self.current_split_index > Some(0) {
            if self.phase == Ended {
                self.phase = Running;
            }
            self.current_split_index = self.current_split_index.map(|i| i - 1);
            self.current_split_mut().unwrap().clear_split_time();
            self.run.mark_as_modified();
            // FIXME: OnUndoSplit
        }
    }
pub fn undo_split ( & mut self ) { if self . phase != NotRunning && self . current_split_index > Some ( 0 ) { if self . phase == Ended { self . phase = Running ; } self . current_split_index = self . current_split_index . map ( | i | i - 1 ) ; self . current_split_mut ( ) . unwrap ( ) . clear_split_time ( ) ; self . run . mark_as_modified ( ) ; // FIXME: OnUndoSplit } }
Removes the split time from the last split if an attempt is in progress
and there is a previous split.
Removes the split time from the last split if an attempt is in progress and there is a previous split .
&mut self
&mut self