Remove unnecessary type ascription
@@ -575,7 +575,7 @@ fn compute_undo(&self, groups: &BTreeSet<usize>) -> (Revision, Subset) {
Contents::Undo { .. } => None,
})
.and_then(|group| {
- let mut cursor: Option<&CursorMode> = None;
+ let mut cursor = None;
for rev in &self.revs[first_candidate..] {
if let Contents::Edit { ref undo_group, .. } = rev.edit {
if group == undo_group {
