Skip to content

Instantly share code, notes, and snippets.

@KiChjang
Created January 8, 2016 20:00
Show Gist options
  • Save KiChjang/2a616f259aeb9327acd8 to your computer and use it in GitHub Desktop.
Save KiChjang/2a616f259aeb9327acd8 to your computer and use it in GitHub Desktop.
let (actual_response, response) = match Rc::try_unwrap(actual_response.unwrap()) {
Ok(actual_res) => (actual_res, &Rc::try_unwrap(response.unwrap()).ok()),
Err(res) => {
drop(response);
let res = Rc::try_unwrap(res.unwrap()).ok();
(res, &res)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment