From 6a0800d7a4789cf42ca02e1b53dca76b6017609d Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Sat, 21 Oct 2017 13:00:15 -0700 Subject: [PATCH] Clear up unreachable message (#161) --- src/proto/streams/prioritize.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/proto/streams/prioritize.rs b/src/proto/streams/prioritize.rs index e2c045c..b34d370 100644 --- a/src/proto/streams/prioritize.rs +++ b/src/proto/streams/prioritize.rs @@ -600,7 +600,12 @@ impl Prioritize { } })) }, - Some(frame) => frame.map(|_| unreachable!()), + Some(frame) => frame.map(|_| + unreachable!( + "Frame::map closure will only be called \ + on DATA frames." + ) + ), None => { assert!(stream.state.is_canceled()); stream.state.set_reset(Reason::CANCEL);