mirror of https://github.com/zkat/miette.git
format: cargo fmt
This commit is contained in:
parent
9d430b6f47
commit
b08e5cca62
|
|
@ -14,7 +14,6 @@ pub struct Chain<'a> {
|
||||||
state: crate::chain::ChainState<'a>,
|
state: crate::chain::ChainState<'a>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub(crate) enum ChainState<'a> {
|
pub(crate) enum ChainState<'a> {
|
||||||
Linked {
|
Linked {
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,5 @@ pub enum MietteError {
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
IoError(#[from] io::Error),
|
IoError(#[from] io::Error),
|
||||||
#[error("The given offset is outside the bounds of its Source")]
|
#[error("The given offset is outside the bounds of its Source")]
|
||||||
OutOfBounds
|
OutOfBounds,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,6 @@ pub use reporter::*;
|
||||||
|
|
||||||
mod chain;
|
mod chain;
|
||||||
mod error;
|
mod error;
|
||||||
mod source_impls;
|
|
||||||
mod protocol;
|
mod protocol;
|
||||||
mod reporter;
|
mod reporter;
|
||||||
|
mod source_impls;
|
||||||
|
|
|
||||||
|
|
@ -163,9 +163,7 @@ impl DiagnosticReporter for JokeReporter {
|
||||||
"me, with {} {}: {}",
|
"me, with {} {}: {}",
|
||||||
sev,
|
sev,
|
||||||
diagnostic,
|
diagnostic,
|
||||||
diagnostic
|
diagnostic.help().unwrap_or(&"have you tried not failing?")
|
||||||
.help()
|
|
||||||
.unwrap_or(&"have you tried not failing?")
|
|
||||||
)?;
|
)?;
|
||||||
writeln!(
|
writeln!(
|
||||||
f,
|
f,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
use std::{fmt, sync::Arc};
|
use std::{fmt, sync::Arc};
|
||||||
|
|
||||||
use miette::{
|
use miette::{
|
||||||
Diagnostic, DiagnosticReporter, DiagnosticSnippet, MietteError, MietteReporter,
|
Diagnostic, DiagnosticReporter, DiagnosticSnippet, MietteError, MietteReporter, SourceSpan,
|
||||||
SourceSpan,
|
|
||||||
};
|
};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue