Skip to content

Commit 3b14335

Browse files
Split lines to known which unwrap fails.
1 parent c71df3e commit 3b14335

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/hyper_ruby/src/response.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ impl Response {
6161
let body = self.response.body();
6262
match body.clone().frame().now_or_never() {
6363
Some(frame) => {
64-
let data_chunk = frame.unwrap().unwrap().into_data().unwrap();
64+
let frame = frame.unwrap();
65+
let frame = frame.unwrap();
66+
let data_chunk = frame.into_data().unwrap();
6567
RString::from_slice(data_chunk.iter().as_slice())
6668
}
6769
None => RString::buf_new(0),

0 commit comments

Comments
 (0)