From 8bd78f49cd55f87746c8021f80302415bf1512d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20M=2E=20Bezerra?= Date: Sat, 4 Jun 2022 11:46:46 -0300 Subject: [PATCH] fix accessible warning `if` reversed --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index d2680a2..dfe6b62 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -68,7 +68,7 @@ macro_rules! warning { pub fn _warning_helper() { use crate::utils::colors::{ORANGE, RESET}; - if !crate::cli::ACCESSIBLE.get().unwrap() { + if *crate::cli::ACCESSIBLE.get().unwrap() { print!("{}Warning:{} ", *ORANGE, *RESET); } else { print!("{}[WARNING]{} ", *ORANGE, *RESET);