From 84c8a5b363edaf904a251176a00fb718af89f245 Mon Sep 17 00:00:00 2001 From: Filip Bachul Date: Fri, 1 Apr 2022 17:26:18 +0200 Subject: [PATCH] fmt --- src/conditional_style.rs | 10 +++++----- src/modules/directory.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/conditional_style.rs b/src/conditional_style.rs index f9d475f5b..8daacd812 100644 --- a/src/conditional_style.rs +++ b/src/conditional_style.rs @@ -108,9 +108,9 @@ mod tests { expected_value: None, style: "", }; - assert_eq!(style.should_apply(&context), false); + assert!(!style.should_apply(&context)); context.env.insert("test", String::default()); - assert_eq!(style.should_apply(&context), true); + assert!(style.should_apply(&context)); } #[test] @@ -123,11 +123,11 @@ mod tests { style: "", }; - assert_eq!(style.should_apply(&context), false); + assert!(!style.should_apply(&context)); context.env.insert("test", String::from("not_expected")); - assert_eq!(style.should_apply(&context), false); + assert!(!style.should_apply(&context)); context.env.insert("test", String::from("expected")); - assert_eq!(style.should_apply(&context), true); + assert!(style.should_apply(&context)); } #[test] diff --git a/src/modules/directory.rs b/src/modules/directory.rs index 997a01a3f..57f23d94c 100644 --- a/src/modules/directory.rs +++ b/src/modules/directory.rs @@ -1,9 +1,9 @@ #[cfg(not(target_os = "windows"))] -use crate::conditional_style::get_conditional_style; use super::utils::directory_nix as directory_utils; #[cfg(target_os = "windows")] use super::utils::directory_win as directory_utils; use super::utils::path::PathExt as SPathExt; +use crate::conditional_style::get_conditional_style; use indexmap::IndexMap; use path_slash::{PathBufExt, PathExt}; use std::iter::FromIterator;