Fix clippy warnings

This commit is contained in:
ayazhafiz 2022-02-23 09:11:19 -05:00
parent b6d7229525
commit ccd4963e0f
2 changed files with 2 additions and 2 deletions

View file

@ -239,7 +239,7 @@ pub fn canonicalize_pattern<'a>(
OpaqueRef(name) => match scope.lookup_opaque_ref(name, tag.region) {
Ok((opaque, opaque_def)) => {
debug_assert!(can_patterns.len() >= 1);
debug_assert!(!can_patterns.is_empty());
if can_patterns.len() > 1 {
env.problem(Problem::RuntimeError(