refactor: Refactoring option type handling

This commit is contained in:
k-nasa 2019-11-20 00:38:51 +09:00
parent 080875edc9
commit b5e66c4f93
2 changed files with 2 additions and 8 deletions

View file

@ -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)),
}
}
}

View file

@ -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)),
}
}
}