refactor: use custom error instead of anyhow by weihanglo · Pull Request #13050...
source link: https://github.com/rust-lang/cargo/pull/13050
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Member
What does this PR try to resolve?
This defines custom error types for rustfix
crate, instead of anyhow
.
How should we test and review this PR?
Some error messages were slightly tweaked but shouldn't affect the behavior.
I am not particularly sure about the SemVer compatibility. Some functions' return type has changed from Result<_, anyhow::Error>
to Result<_, rustfix::Error>
. People already consume anyhow::Error
should be able to use rustfix::Error
without updating their code I think.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK