cleanup: replace an assert! by assert_eq!

As pointed out by IntelliJ.
This commit is contained in:
Martin von Zweigbergk 2022-11-13 15:05:07 -08:00 committed by Martin von Zweigbergk
parent 4ec2092e57
commit 2ae2010007

View file

@ -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()
);