Use std::iter::once instead of Some.

This commit is contained in:
Todd Mortimer 2021-07-25 22:13:16 -04:00
parent 826e6d413b
commit 7e581a6b5e

View file

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