mirror of
https://github.com/Kindelia/Kind2.git
synced 2024-10-26 08:09:22 +03:00
style: improved code style
This commit is contained in:
parent
d184e30701
commit
c50e8b8ebe
@ -75,11 +75,6 @@ pub enum Log {
|
|||||||
Failed(Duration),
|
Failed(Duration),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct DiagnosticConfig {
|
|
||||||
hide_vals: bool,
|
|
||||||
indent_ctx_vars: bool
|
|
||||||
}
|
|
||||||
|
|
||||||
pub trait Diagnostic {
|
pub trait Diagnostic {
|
||||||
fn get_syntax_ctx(&self) -> Option<SyntaxCtxIndex>;
|
fn get_syntax_ctx(&self) -> Option<SyntaxCtxIndex>;
|
||||||
fn get_severity(&self) -> Severity;
|
fn get_severity(&self) -> Severity;
|
||||||
|
@ -2,11 +2,10 @@ use super::CodeBlock;
|
|||||||
use super::{Classic, Renderable, Res};
|
use super::{Classic, Renderable, Res};
|
||||||
use crate::data::*;
|
use crate::data::*;
|
||||||
use crate::report::code::{count_width, group_markers, LineGuide, Spaces};
|
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::RenderConfig;
|
||||||
use crate::report::group_marker_lines;
|
use crate::report::group_marker_lines;
|
||||||
|
|
||||||
use fxhash::{FxHashMap, FxHashSet};
|
|
||||||
use pathdiff::diff_paths;
|
use pathdiff::diff_paths;
|
||||||
use std::fmt::Write;
|
use std::fmt::Write;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
Loading…
Reference in New Issue
Block a user