We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be315ae commit 7d85648Copy full SHA for 7d85648
eden/mononoke/mercurial/bundles/src/lib.rs
@@ -5,7 +5,6 @@
5
* GNU General Public License version 2.
6
*/
7
8
-#![feature(let_chains)]
9
use mononoke_macros::mononoke;
10
pub mod bundle2;
11
pub mod bundle2_encode;
eden/mononoke/mercurial/bundles/src/utils.rs
@@ -159,8 +159,13 @@ where
159
yield frame;
160
}
161
162
- while !buf.is_empty() && let Some(frame) = decoder.decode_eof(&mut buf)? {
163
- yield frame;
+ while !buf.is_empty()
+ {
164
+ if let Some(frame) = decoder.decode_eof(&mut buf)? {
165
+ yield frame;
166
+ } else {
167
+ break
168
+ }
169
170
171
0 commit comments