DioxusLabs / DioxusLabs/dioxus
Remove `AnyhowContext` from prelude
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
I use the [eros](https://github.com/mcmah309/eros) and it adds a `.context(..)` method to `Result` provided through a trait as well. When I try to use `.context` I get
```
multiple applicable items in scope
candidate #1 is defined in an impl of the trait `eros::Context` for the type `std::result::Result`
candidate #2 is defined in an impl of the trait `dioxus::prelude::AnyhowContext` for the type `std::result::Result`
```
This is annoying, because my only option is to disambiguate at each callsite. Users of other libraries like `eyre`/`color-eyre`, `snafu`, `error-chain`, `quick_error`, etc. will run into this issue as well.
## Implement Suggestion
Remove `AnyhowContext` from the prelude.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the prelude definition and the AnyhowContext export, then inspect how the prelude is re-exported. Remove AnyhowContext from that prelude and verify that the conflicting Result::context method is no longer brought into scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100