Skip to content

Commit ade71b1

Browse files
committed
feat: hide AnsiPrefix
1 parent cf3e12b commit ade71b1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/visualizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub mod tree;
99

1010
pub use bar_alignment::BarAlignment;
1111
pub use child_position::ChildPosition;
12-
pub use coloring::{AnsiPrefix, Color, Coloring};
12+
pub use coloring::{Color, Coloring};
1313
pub use column_width_distribution::ColumnWidthDistribution;
1414
pub use direction::Direction;
1515
pub use parenthood::Parenthood;

src/visualizer/coloring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl Color {
5454

5555
/// ANSI prefix wrapper for a [`Color`] variant, implements [`Display`].
5656
#[derive(Display)]
57-
pub struct AnsiPrefix<'a>(&'a str);
57+
pub(super) struct AnsiPrefix<'a>(&'a str);
5858

5959
impl AnsiPrefix<'_> {
6060
/// Returns the reset suffix to emit after this prefix, or `""` if no prefix.

0 commit comments

Comments
 (0)