Skip to content

Comments

convert to anyhow#5

Merged
bcantrill merged 2 commits intomasterfrom
anyhow
Jul 13, 2020
Merged

convert to anyhow#5
bcantrill merged 2 commits intomasterfrom
anyhow

Conversation

@steveklabnik
Copy link
Contributor

@steveklabnik steveklabnik commented Jul 10, 2020

Also add a .gitignore

More principled than #3, and included @jclulow 's feedback from that PR too :)

@steveklabnik steveklabnik requested a review from bcantrill July 10, 2020 16:53
@steveklabnik
Copy link
Contributor Author

I realized I hadn't run cargo fmt, and so i did so and pushed another commit. It looks like it made some unrelated changes, so I'm not sure if that's drift over time or maybe if I ran the wrong version....

@steveklabnik
Copy link
Contributor Author

Squashed the formatting changes in 💪

I tried to stick to preserving semantics as much as possible, even
if altneratives might be shorter. The transformations:

* bail! -> Err(anyhow!
* return err! -> bail!
* if ... err! -> ensure!
Copy link
Contributor

@bcantrill bcantrill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great -- <3 anyhow! Thanks for doing this and showing the way!

@bcantrill bcantrill merged commit 6155a66 into master Jul 13, 2020
@steveklabnik steveklabnik deleted the anyhow branch July 20, 2020 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants