style: improved code style

This commit is contained in:
Sofia R 2023-04-30 10:02:00 -03:00
parent d184e30701
commit c50e8b8ebe
2 changed files with 1 additions and 7 deletions

View File

@ -75,11 +75,6 @@ pub enum Log {
Failed(Duration),
}
pub struct DiagnosticConfig {
hide_vals: bool,
indent_ctx_vars: bool
}
pub trait Diagnostic {
fn get_syntax_ctx(&self) -> Option<SyntaxCtxIndex>;
fn get_severity(&self) -> Severity;

View File

@ -2,11 +2,10 @@ use super::CodeBlock;
use super::{Classic, Renderable, Res};
use crate::data::*;
use crate::report::code::{count_width, group_markers, LineGuide, Spaces};
use crate::report::code::{FileMarkers, Point};
use crate::report::code::Point;
use crate::RenderConfig;
use crate::report::group_marker_lines;
use fxhash::{FxHashMap, FxHashSet};
use pathdiff::diff_paths;
use std::fmt::Write;
use std::path::PathBuf;