format: cargo fmt

This commit is contained in:
Kat Marchán 2021-08-10 19:13:02 -04:00
parent 9d430b6f47
commit b08e5cca62
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
5 changed files with 4 additions and 8 deletions

View File

@ -14,7 +14,6 @@ pub struct Chain<'a> {
state: crate::chain::ChainState<'a>,
}
#[derive(Clone)]
pub(crate) enum ChainState<'a> {
Linked {

View File

@ -10,5 +10,5 @@ pub enum MietteError {
#[error(transparent)]
IoError(#[from] io::Error),
#[error("The given offset is outside the bounds of its Source")]
OutOfBounds
OutOfBounds,
}

View File

@ -6,6 +6,6 @@ pub use reporter::*;
mod chain;
mod error;
mod source_impls;
mod protocol;
mod reporter;
mod source_impls;

View File

@ -163,9 +163,7 @@ impl DiagnosticReporter for JokeReporter {
"me, with {} {}: {}",
sev,
diagnostic,
diagnostic
.help()
.unwrap_or(&"have you tried not failing?")
diagnostic.help().unwrap_or(&"have you tried not failing?")
)?;
writeln!(
f,

View File

@ -1,8 +1,7 @@
use std::{fmt, sync::Arc};
use miette::{
Diagnostic, DiagnosticReporter, DiagnosticSnippet, MietteError, MietteReporter,
SourceSpan,
Diagnostic, DiagnosticReporter, DiagnosticSnippet, MietteError, MietteReporter, SourceSpan,
};
use thiserror::Error;