diff --git a/crates/anstream/src/strip.rs b/crates/anstream/src/strip.rs index 48bbd340..3b464445 100644 --- a/crates/anstream/src/strip.rs +++ b/crates/anstream/src/strip.rs @@ -4,7 +4,10 @@ use crate::RawStream; /// Only pass printable data to the inner `Write` #[derive(Debug)] -pub struct StripStream { +pub struct StripStream +where + S: RawStream, +{ raw: S, state: StripBytes, } diff --git a/crates/anstream/src/wincon.rs b/crates/anstream/src/wincon.rs index 3049966b..b9be2257 100644 --- a/crates/anstream/src/wincon.rs +++ b/crates/anstream/src/wincon.rs @@ -25,7 +25,7 @@ where pub fn new(raw: S) -> Self { Self { raw, - state: Box::default(), + state: Default::default(), } }