Skip to content

Commit

Permalink
Merge pull request #114 from epage/lifetime
Browse files Browse the repository at this point in the history
fix(wincon)!: Simplify to static locks
  • Loading branch information
epage committed Aug 23, 2023
2 parents 1d0bac9 + ac18905 commit e2452e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/anstyle-wincon/examples/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn style(fixed: u8, layer: Layer, effects: anstyle::Effects) -> anstyle::Style {
}

fn print_number(
stdout: &mut anstyle_wincon::Console<std::io::StdoutLock<'_>>,
stdout: &mut anstyle_wincon::Console<std::io::StdoutLock<'static>>,
fixed: u8,
style: anstyle::Style,
) -> std::io::Result<()> {
Expand Down
4 changes: 2 additions & 2 deletions crates/anstyle-wincon/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl WinconStream for std::io::Stdout {
}
}

impl<'s> WinconStream for std::io::StdoutLock<'s> {
impl WinconStream for std::io::StdoutLock<'static> {
fn set_colors(
&mut self,
fg: Option<anstyle::AnsiColor>,
Expand Down Expand Up @@ -66,7 +66,7 @@ impl WinconStream for std::io::Stderr {
}
}

impl<'s> WinconStream for std::io::StderrLock<'s> {
impl WinconStream for std::io::StderrLock<'static> {
fn set_colors(
&mut self,
fg: Option<anstyle::AnsiColor>,
Expand Down

0 comments on commit e2452e2

Please sign in to comment.