Skip to content

Commit

Permalink
More lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Mircea <[email protected]>
  • Loading branch information
bobozaur committed Oct 18, 2023
1 parent 63af9da commit 42daf81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions aries_vcx/src/utils/test_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ fn text_no_color_format(buf: &mut Formatter, record: &Record) -> std::io::Result

impl LibvcxDefaultLogger {
pub fn init_testing_logger() {
env::var("RUST_LOG").map_or((), |log_pattern| {
LibvcxDefaultLogger::init(Some(log_pattern))
.expect("Failed to initialize LibvcxDefaultLogger for testing");
});
LibvcxDefaultLogger::init(env::var("RUST_LOG").ok())
.expect("Failed to initialize LibvcxDefaultLogger for testing");
}

pub fn init(pattern: Option<String>) -> VcxResult<()> {
Expand Down

0 comments on commit 42daf81

Please sign in to comment.