Use std::iter::once instead of Some.
This commit is contained in:
parent
826e6d413b
commit
7e581a6b5e
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ where
|
|||
lines = rest;
|
||||
|
||||
match map(resp)? {
|
||||
MapOrNot::Map(t) => into.extend(Some(t)),
|
||||
MapOrNot::Map(t) => into.extend(std::iter::once(t)),
|
||||
MapOrNot::MapVec(t) => into.extend(t),
|
||||
MapOrNot::Not(resp) => match try_handle_unilateral(resp, unsolicited) {
|
||||
Some(Response::Fetch(..)) => continue,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue