summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index 0d9353b..eec43e8 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -262,7 +262,7 @@ impl Repl {
None => println!("Usage: .prompt <text>..."),
},
".role" => match args {
- Some(args) => match args.split_once(|c| c == '\n' || c == ' ') {
+ Some(args) => match args.split_once(['\n', ' ']) {
Some((name, text)) => {
let role = self.config.read().retrieve_role(name.trim())?;
let input = Input::from_str(&self.config, text.trim(), Some(role));