Skip to content

Commit

Permalink
Keep line length below 79 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Jun 4, 2019
1 parent 9a826b2 commit 0fa969a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1511,10 +1511,12 @@ impl ColorSpec {
&self,
console: &mut wincolor::Console,
) -> io::Result<()> {
if let Some((intense, color)) = self.fg_color.and_then(|c| c.to_windows(self.intense)) {
let fg_color = self.fg_color.and_then(|c| c.to_windows(self.intense));
if let Some((intense, color)) = fg_color {
console.fg(intense, color)?;
}
if let Some((intense, color)) = self.bg_color.and_then(|c| c.to_windows(self.intense)) {
let bg_color = self.bg_color.and_then(|c| c.to_windows(self.intense));
if let Some((intense, color)) = bg_color {
console.bg(intense, color)?;
}
Ok(())
Expand Down

0 comments on commit 0fa969a

Please sign in to comment.