Skip to content

Commit

Permalink
Fix clippy lint when running on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hwittenborn committed Jul 5, 2023
1 parent ef8e269 commit e20bd92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
/// control::set_virtual_terminal(true).unwrap();
/// println!("{}", "bright cyan".bright_cyan()); // will print correctly
/// ```
#[allow(clippy::result_unit_err)]
#[cfg(windows)]
pub fn set_virtual_terminal(use_virtual: bool) -> Result<(), ()> {
use winapi::{
Expand Down

0 comments on commit e20bd92

Please sign in to comment.