mirror of https://github.com/zkat/miette.git
fix: cargo fmt (#168)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
2451ad6a96
commit
33c8903313
|
|
@ -21,8 +21,8 @@ inaccessible. If you have a type implementing [`Diagnostic`] consider simply ret
|
||||||
[`Into`] or the [`Try`](std::ops::Try) operator (`?`).
|
[`Into`] or the [`Try`](std::ops::Try) operator (`?`).
|
||||||
*/
|
*/
|
||||||
pub trait IntoDiagnostic<T, E> {
|
pub trait IntoDiagnostic<T, E> {
|
||||||
/// Converts [`Result`] types that return regular [`std::error::Error`]s into a
|
/// Converts [`Result`] types that return regular [`std::error::Error`]s
|
||||||
/// [`Result`] that returns a [`Diagnostic`].
|
/// into a [`Result`] that returns a [`Diagnostic`].
|
||||||
fn into_diagnostic(self) -> Result<T, Report>;
|
fn into_diagnostic(self) -> Result<T, Report>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue