refactor: Refactoring option type handling

pull/559/head
k-nasa 5 years ago
parent 080875edc9
commit b5e66c4f93

@ -59,10 +59,7 @@ where
}
Poll::Pending
}
None => Poll::Ready(match this.max.take() {
None => None,
Some(max) => Some(max.1),
}),
None => Poll::Ready(this.max.take().map(|max| max.1)),
}
}
}

@ -59,10 +59,7 @@ where
}
Poll::Pending
}
None => Poll::Ready(match this.min.take() {
None => None,
Some(max) => Some(max.1),
}),
None => Poll::Ready(this.min.take().map(|min| min.1)),
}
}
}

Loading…
Cancel
Save