mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-30 16:10:23 +00:00
cleanup: replace an assert!
by assert_eq!
As pointed out by IntelliJ.
This commit is contained in:
parent
4ec2092e57
commit
2ae2010007
1 changed files with 3 additions and 2 deletions
|
@ -430,8 +430,9 @@ pub fn parse_commit_template<'a>(
|
||||||
let first_pair = pairs.next().unwrap();
|
let first_pair = pairs.next().unwrap();
|
||||||
assert!(pairs.next().is_none());
|
assert!(pairs.next().is_none());
|
||||||
|
|
||||||
assert!(
|
assert_eq!(
|
||||||
first_pair.as_span().end() == template_text.len(),
|
first_pair.as_span().end(),
|
||||||
|
template_text.len(),
|
||||||
"failed to parse template past position {}",
|
"failed to parse template past position {}",
|
||||||
first_pair.as_span().end()
|
first_pair.as_span().end()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue