Skip to content

Commit ae5444a

Browse files
committed
empty map is the end
1 parent 206dcd7 commit ae5444a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/proto.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ impl<'a, I> Iterator for Maps<'a, I> where I: Iterator<Item = io::Result<String>
7272
}
7373
}
7474

75-
Some(Ok(map))
75+
if map.is_empty() {
76+
None
77+
} else {
78+
Some(Ok(map))
79+
}
7680
}
7781
}
7882

0 commit comments

Comments
 (0)