Skip to content

Commit ec63830

Browse files
committed
fix: clippy errors fixed (rust-lang#184)
1 parent 34a69b4 commit ec63830

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/renderer/display/display_annotations.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ use anstyle::Style;
22

33
use crate::{renderer::stylesheet::Stylesheet, snippet};
44

5-
use super::{constants::*, display_text::DisplayTextFragment};
5+
use super::{
6+
constants::{ERROR_TXT, HELP_TXT, INFO_TXT, NOTE_TXT, WARNING_TXT},
7+
display_text::DisplayTextFragment,
8+
};
69

710
/// A type of the `Annotation` which may impact the sigils, style or text displayed.
811
///

src/renderer/display/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ use std::ops::Range;
5151
use crate::renderer::styled_buffer::StyledBuffer;
5252
use crate::renderer::{stylesheet::Stylesheet, Margin, DEFAULT_TERM_WIDTH};
5353

54-
use constants::*;
54+
use constants::ANONYMIZED_LINE_NUM;
5555
use cursor_line::CursorLines;
5656
use display_annotations::{
5757
get_annotation_style, Annotation, DisplayAnnotationPart, DisplayAnnotationType,

0 commit comments

Comments
 (0)