Skip to content

Commit

Permalink
fix tests/examples; unify log import handling now that paris doesn't …
Browse files Browse the repository at this point in the history
…require something different
  • Loading branch information
shimaowo committed May 30, 2023
1 parent edad110 commit 1c2c36c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/custom_colors.rs
@@ -1,4 +1,4 @@
#[cfg(all(feature = "termcolor", not(feature = "paris")))]
#[cfg(feature = "termcolor")]
use log::*;
#[cfg(feature = "termcolor")]
use simplelog::*;
Expand Down
2 changes: 1 addition & 1 deletion examples/default_colors.rs
@@ -1,4 +1,4 @@
#[cfg(all(feature = "termcolor", not(feature = "paris")))]
#[cfg(feature = "termcolor")]
use log::*;
#[cfg(feature = "termcolor")]
use simplelog::*;
Expand Down
6 changes: 1 addition & 5 deletions examples/rgb_colors.rs
@@ -1,8 +1,4 @@
#[cfg(all(
not(target_family = "windows"),
feature = "termcolor",
not(feature = "paris")
))]
#[cfg(all(not(target_family = "windows"), feature = "termcolor"))]
use log::*;
#[cfg(all(not(target_family = "windows"), feature = "termcolor"))]
use simplelog::*;
Expand Down
1 change: 0 additions & 1 deletion examples/usage.rs
@@ -1,4 +1,3 @@
#[cfg(not(feature = "paris"))]
use log::*;
use simplelog::*;

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -39,7 +39,7 @@ pub use termcolor::{Color, ColorChoice};
pub use log::{Level, LevelFilter};

use log::Log;
#[cfg(all(test))]
#[cfg(test)]
use log::*;

#[cfg(feature = "paris")]
Expand Down

0 comments on commit 1c2c36c

Please sign in to comment.