Skip to content

Commit

Permalink
fix(stream)!: Sequester internal traits to stream mod
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 28, 2023
1 parent 565425e commit a38e7c8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/anstream/src/auto.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::stream::RawStream;
#[cfg(feature = "auto")]
use crate::ColorChoice;
use crate::RawStream;
use crate::StripStream;
#[cfg(all(windows, feature = "wincon"))]
use crate::WinconStream;
Expand Down
2 changes: 1 addition & 1 deletion crates/anstream/src/buffer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::IsTerminal;
use crate::stream::IsTerminal;

/// In-memory [`RawStream`][crate::RawStream]
#[derive(Clone, Default, Debug, PartialEq, Eq)]
Expand Down
5 changes: 2 additions & 3 deletions crates/anstream/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,17 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

pub mod adapter;
pub mod stream;

mod buffer;
#[macro_use]
mod macros;
mod auto;
mod stream;
mod strip;
#[cfg(all(windows, feature = "wincon"))]
mod wincon;

pub use auto::AutoStream;
pub use stream::IsTerminal;
pub use stream::RawStream;
pub use strip::StripStream;
#[cfg(all(windows, feature = "wincon"))]
pub use wincon::WinconStream;
Expand Down
2 changes: 1 addition & 1 deletion crates/anstream/src/strip.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::adapter::StripBytes;
use crate::RawStream;
use crate::stream::RawStream;

/// Only pass printable data to the inner `Write`
#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion crates/anstream/src/wincon.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::adapter::WinconBytes;
use crate::RawStream;
use crate::stream::RawStream;

/// Only pass printable data to the inner `Write`
#[cfg(feature = "wincon")] // here mostly for documentation purposes
Expand Down

0 comments on commit a38e7c8

Please sign in to comment.