-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace try! macro with '?' operator. #94
Conversation
It's failing because this isn't stable on 1.10.0 (current MSRV), feel free to close if that's non-negotiable. Otherwise, if you'd like, I can bump MSRV to like 1.31.0 in travis and rebase this change on that. |
I think this can be fixed with a |
IMO there are good reasons to actually go through with removing the restated:
|
Yea, normally I'd say moving to So in this case, the warning can be safely ignored. |
(Apologies for the noise if this doesn't work) I force pushed a different patch that adds |
Off-topic, but I'm somewhat annoyed that you have to put that let major = {
#[allow(deprecated)]
r#try!(num.parse::<u32>().map_err(|e| e.to_string()))
}; etc. |
Heh, yea, but then attributes on expressions wasn't stable back then (is it now finally?). But in this case, it's safe to just mark the whole file, since any other deprecation we couldn't do anything about either. |
Okay cool, it failed CI on 1.10.0 again. So as far as I can tell, there is no mechanism to call the In that case, this entire PR just boils down to adding |
Building with 'cargo build -vv' complains about
try!
being deprecated.Replace with functionally-identical '?' operator.