mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-28 23:32:41 +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();
|
||||
assert!(pairs.next().is_none());
|
||||
|
||||
assert!(
|
||||
first_pair.as_span().end() == template_text.len(),
|
||||
assert_eq!(
|
||||
first_pair.as_span().end(),
|
||||
template_text.len(),
|
||||
"failed to parse template past position {}",
|
||||
first_pair.as_span().end()
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue