aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/test.rs')
-rw-r--r--helix-core/src/test.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-core/src/test.rs b/helix-core/src/test.rs
index 064ca8a3..45503107 100644
--- a/helix-core/src/test.rs
+++ b/helix-core/src/test.rs
@@ -53,7 +53,7 @@ pub fn print(s: &str) -> (String, Selection) {
};
if is_primary && primary_idx.is_some() {
- panic!("primary `#[` already appeared {left:?} {s:?}");
+ panic!("primary `#[` already appeared {:?} {:?}", left, s);
}
let head_at_beg = iter.next_if_eq(&'|').is_some();
@@ -85,15 +85,15 @@ pub fn print(s: &str) -> (String, Selection) {
}
if head_at_beg {
- panic!("missing end `{close_pair}#` {left:?} {s:?}");
+ panic!("missing end `{}#` {:?} {:?}", close_pair, left, s);
} else {
- panic!("missing end `|{close_pair}#` {left:?} {s:?}");
+ panic!("missing end `|{}#` {:?} {:?}", close_pair, left, s);
}
}
let primary = match primary_idx {
Some(i) => i,
- None => panic!("missing primary `#[|]#` {s:?}"),
+ None => panic!("missing primary `#[|]#` {:?}", s),
};
let selection = Selection::new(ranges, primary);
(left, selection)