Skip to content

Commit

Permalink
Merge pull request #129 from epage/cleanup
Browse files Browse the repository at this point in the history
fix(stream)!: Restrict StripStream to raw streams
  • Loading branch information
epage authored Sep 27, 2023
2 parents 08f3042 + 1be8e1d commit 6f5bc49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crates/anstream/src/strip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use crate::RawStream;

/// Only pass printable data to the inner `Write`
#[derive(Debug)]
pub struct StripStream<S> {
pub struct StripStream<S>
where
S: RawStream,
{
raw: S,
state: StripBytes,
}
Expand Down
2 changes: 1 addition & 1 deletion crates/anstream/src/wincon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ where
pub fn new(raw: S) -> Self {
Self {
raw,
state: Box::default(),
state: Default::default(),
}
}

Expand Down

0 comments on commit 6f5bc49

Please sign in to comment.