summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-06-10 14:42:44 -0400
committerDan Davison <dandavison7@gmail.com>2020-06-10 14:43:21 -0400
commit18ddf57ff200b3db692294665b0d8513b8f42daf (patch)
treee57f37c29626865ed9aefbaefbc88f088c66e575 /src/config.rs
parent78f595a5c81a9eb40dc7ca29acba158f4584db80 (diff)
Do not allow ArgMatches to be missing
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())