rust-cli / anstyle

ANSI text styling
https://docs.rs/anstyle
Other
121 stars 20 forks source link

refactor: Implement `RawStream` for `&mut T` and `Box<T>` generically #223

Closed DaniPopes closed 1 month ago

DaniPopes commented 1 month ago

Implement RawStream for &mut impl RawStream, Box<impl RawStream> (and the other required traits) instead of implementing for each &mut T/Box<T> manually.

This includes existing implementations, plus the ones that were missing in certain cases and all future ones, so only new implementations are added.

Split from https://github.com/rust-cli/anstyle/pull/221.

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 11502052073

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/anstyle-wincon/src/ansi.rs 0 1 0.0%
crates/anstyle-wincon/src/stream.rs 0 2 0.0%
crates/anstream/src/stream.rs 1 4 25.0%
<!-- Total: 1 7 14.29% -->
Files with Coverage Reduction New Missed Lines %
crates/anstream/src/stream.rs 1 13.16%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 11282311767: 0.2%
Covered Lines: 1221
Relevant Lines: 2341

💛 - Coveralls