mirror of https://github.com/zkat/miette.git
fmt: cargo fmt --all
This commit is contained in:
parent
949174e598
commit
0fecc42f76
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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")?;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use miette::{
|
||||
GraphicalReportPrinter, Diagnostic, DiagnosticReport, MietteError, GraphicalTheme,
|
||||
Diagnostic, DiagnosticReport, GraphicalReportPrinter, GraphicalTheme, MietteError,
|
||||
NarratableReportPrinter, SourceSpan,
|
||||
};
|
||||
use thiserror::Error;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use miette::{
|
||||
GraphicalReportPrinter, Diagnostic, DiagnosticReport, MietteError, GraphicalTheme,
|
||||
Diagnostic, DiagnosticReport, GraphicalReportPrinter, GraphicalTheme, MietteError,
|
||||
NarratableReportPrinter, SourceSpan,
|
||||
};
|
||||
use thiserror::Error;
|
||||
|
|
|
|||
Loading…
Reference in New Issue