let response = match result {
Ok(res) => res,
Err(err) => return Err(err),
};
Is that truly idiomatic? I would think the Err(err) => return Err(err) line needlessly constructs a copy of result. Or is that necessary because of the borrow checker?(Also, for those unfamiliar with it: reqwest is not a typo. See https://github.com/seanmonstar/reqwest)