fmt: cargo fmt --all

This commit is contained in:
Kat Marchán 2021-08-21 23:24:45 -07:00
parent 949174e598
commit 0fecc42f76
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
4 changed files with 12 additions and 4 deletions

View File

@ -134,7 +134,11 @@ impl GraphicalReportPrinter {
Ok(())
}
fn render_snippet(&self, f: &mut impl fmt::Write, snippet: &DiagnosticSnippet<'_>) -> fmt::Result {
fn render_snippet(
&self,
f: &mut impl fmt::Write,
snippet: &DiagnosticSnippet<'_>,
) -> fmt::Result {
let (contents, lines) = self.get_lines(snippet)?;
// Highlights are the bits we're going to underline in our overall

View File

@ -79,7 +79,11 @@ impl NarratableReportPrinter {
Ok(())
}
fn render_snippet(&self, f: &mut impl fmt::Write, snippet: &DiagnosticSnippet<'_>) -> fmt::Result {
fn render_snippet(
&self,
f: &mut impl fmt::Write,
snippet: &DiagnosticSnippet<'_>,
) -> fmt::Result {
let (contents, lines) = self.get_lines(snippet)?;
write!(f, "Begin snippet")?;

View File

@ -1,5 +1,5 @@
use miette::{
GraphicalReportPrinter, Diagnostic, DiagnosticReport, MietteError, GraphicalTheme,
Diagnostic, DiagnosticReport, GraphicalReportPrinter, GraphicalTheme, MietteError,
NarratableReportPrinter, SourceSpan,
};
use thiserror::Error;

View File

@ -1,5 +1,5 @@
use miette::{
GraphicalReportPrinter, Diagnostic, DiagnosticReport, MietteError, GraphicalTheme,
Diagnostic, DiagnosticReport, GraphicalReportPrinter, GraphicalTheme, MietteError,
NarratableReportPrinter, SourceSpan,
};
use thiserror::Error;