summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index af8b57cb..f68f7b9a 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -380,6 +380,8 @@ mod tests {
use super::*;
use std::env;
+ use structopt::clap;
+
use crate::cli;
use crate::color;
use crate::tests::integration_test_utils::integration_test_utils;
@@ -469,7 +471,8 @@ mod tests {
options.dark = false;
}
}
- let config = cli::process_command_line_arguments(options, None, &mut None);
+ let config =
+ cli::process_command_line_arguments(options, clap::ArgMatches::new(), &mut None);
assert_eq!(config.syntax_theme_name, expected_syntax_theme);
if syntax_theme::is_no_syntax_highlighting_theme_name(expected_syntax_theme) {
assert!(config.syntax_theme.is_none())