diff options
Diffstat (limited to 'src/options/get.rs')
-rw-r--r-- | src/options/get.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/options/get.rs b/src/options/get.rs index 974b9a83..40f3d581 100644 --- a/src/options/get.rs +++ b/src/options/get.rs @@ -38,7 +38,7 @@ where T::get_option_value(option_name, builtin_features, opt, git_config) } -static GIT_CONFIG_THEME_REGEX: &str = r#"^delta\.(.+)\.(light|dark)$"#; +static GIT_CONFIG_THEME_REGEX: &str = r"^delta\.(.+)\.(light|dark)$"; pub fn get_themes(git_config: Option<git_config::GitConfig>) -> Vec<String> { let mut themes: Vec<String> = Vec::new(); @@ -225,8 +225,8 @@ pub mod tests { git_config_contents, git_config_path, "'delta.side-by-side=false'".into(), - &|opt: Opt| assert_eq!(opt.side_by_side, true), - &|opt: Opt| assert_eq!(opt.side_by_side, false), + &|opt: Opt| assert!(opt.side_by_side), + &|opt: Opt| assert!(!opt.side_by_side), ); } @@ -276,7 +276,7 @@ pub mod tests { Some(git_config_path), ); assert_eq!(opt.features.unwrap(), "feature-from-gitconfig"); - assert_eq!(opt.side_by_side, false); + assert!(!opt.side_by_side); let opt = integration_test_utils::make_options_from_args_and_git_config_with_custom_env( DeltaEnv { @@ -289,7 +289,7 @@ pub mod tests { ); // `line-numbers` is a builtin feature induced by side-by-side assert_eq!(opt.features.unwrap(), "line-numbers side-by-side"); - assert_eq!(opt.side_by_side, true); + assert!(opt.side_by_side); let opt = integration_test_utils::make_options_from_args_and_git_config_with_custom_env( DeltaEnv { @@ -304,7 +304,7 @@ pub mod tests { opt.features.unwrap(), "feature-from-gitconfig line-numbers side-by-side" ); - assert_eq!(opt.side_by_side, true); + assert!(opt.side_by_side); remove_file(git_config_path).unwrap(); } |