forked from mirror/async-std
refactor: Refactoring option type handling
This commit is contained in:
parent
080875edc9
commit
b5e66c4f93
2 changed files with 2 additions and 8 deletions
|
@ -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…
Reference in a new issue