Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96ebf8a

Browse files
committed
refactor(renderer): Separate mods/uses by scope
1 parent 7315635 commit 96ebf8a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/renderer/mod.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@
2020
//! anstream::println!("{output}");
2121
//! ```
2222
23-
mod margin;
2423
pub(crate) mod source_map;
25-
mod styled_buffer;
2624
pub(crate) mod stylesheet;
2725

26+
mod margin;
27+
mod styled_buffer;
28+
29+
use std::borrow::Cow;
30+
use std::cmp::{max, min, Ordering, Reverse};
31+
use std::collections::{HashMap, VecDeque};
32+
use std::fmt;
33+
2834
use crate::level::{Level, LevelInner};
2935
use crate::renderer::source_map::{
3036
AnnotatedLineInfo, LineInfo, Loc, SourceMap, SubstitutionHighlight,
@@ -34,14 +40,11 @@ use crate::snippet::Id;
3440
use crate::{
3541
Annotation, AnnotationKind, Element, Group, Message, Origin, Patch, Report, Snippet, Title,
3642
};
37-
pub use anstyle::*;
3843
use margin::Margin;
39-
use std::borrow::Cow;
40-
use std::cmp::{max, min, Ordering, Reverse};
41-
use std::collections::{HashMap, VecDeque};
42-
use std::fmt;
4344
use stylesheet::Stylesheet;
4445

46+
pub use anstyle::*;
47+
4548
const ANONYMIZED_LINE_NUM: &str = "LL";
4649

4750
/// See [`Renderer::term_width`]

0 commit comments

Comments
 (0)