You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
I commonly use color_eyre and its re-exports from eyre.
However, not all commonly used symbols are re-exported. This results in nested imports like:
use color_eyre::{
eyre::{bail, eyre,WrapErr},Report,Result,};
The ambiguity between color_eyre::eyre (the crate re-export) and color_eyre::eyre::eyre (the macro) is also a pain point in my daily work.
(Rust analyzer unfortunately makes this worse by onlym despite the ! postfix, offering an auto-import of color_eyre::eyre instead of the correct color_eyre::eyre::eyre when eyre! is not in scope.)
From an ergonomics standpoint, I would wish for the full eyre feature-set (including e.g. WrapErr and OptionExt) to be re-exported from color_eyre:
use color_eyre::{bail, eyre,OptionExt,Report,Result,WrapErr};
In the above hypothetical use statement, the eyre imports the eyre! macro, not the eyre crate.
This is a breaking change.
The text was updated successfully, but these errors were encountered:
I commonly use
color_eyre
and its re-exports fromeyre
.However, not all commonly used symbols are re-exported. This results in nested imports like:
The ambiguity between
color_eyre::eyre
(the crate re-export) andcolor_eyre::eyre::eyre
(the macro) is also a pain point in my daily work.(Rust analyzer unfortunately makes this worse by onlym despite the
!
postfix, offering an auto-import ofcolor_eyre::eyre
instead of the correctcolor_eyre::eyre::eyre
wheneyre!
is not in scope.)From an ergonomics standpoint, I would wish for the full
eyre
feature-set (including e.g.WrapErr
andOptionExt
) to be re-exported fromcolor_eyre
:In the above hypothetical
use
statement, theeyre
imports theeyre!
macro, not theeyre
crate.This is a breaking change.
The text was updated successfully, but these errors were encountered: