Skip to content

Commit 7e581a6

Browse files
committed
Use std::iter::once instead of Some.
1 parent 826e6d4 commit 7e581a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ where
5454
lines = rest;
5555

5656
match map(resp)? {
57-
MapOrNot::Map(t) => into.extend(Some(t)),
57+
MapOrNot::Map(t) => into.extend(std::iter::once(t)),
5858
MapOrNot::MapVec(t) => into.extend(t),
5959
MapOrNot::Not(resp) => match try_handle_unilateral(resp, unsolicited) {
6060
Some(Response::Fetch(..)) => continue,

0 commit comments

Comments
 (0)