mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Fix clippy warnings
This commit is contained in:
parent
b6d7229525
commit
ccd4963e0f
2 changed files with 2 additions and 2 deletions
|
@ -423,7 +423,7 @@ pub fn canonicalize_expr<'a>(
|
||||||
if let ast::Expr::OpaqueRef(name) = loc_fn.value {
|
if let ast::Expr::OpaqueRef(name) = loc_fn.value {
|
||||||
// We treat opaques specially, since an opaque can wrap exactly one argument.
|
// We treat opaques specially, since an opaque can wrap exactly one argument.
|
||||||
|
|
||||||
debug_assert!(args.len() >= 1);
|
debug_assert!(!args.is_empty());
|
||||||
|
|
||||||
if args.len() > 1 {
|
if args.len() > 1 {
|
||||||
let problem =
|
let problem =
|
||||||
|
|
|
@ -239,7 +239,7 @@ pub fn canonicalize_pattern<'a>(
|
||||||
|
|
||||||
OpaqueRef(name) => match scope.lookup_opaque_ref(name, tag.region) {
|
OpaqueRef(name) => match scope.lookup_opaque_ref(name, tag.region) {
|
||||||
Ok((opaque, opaque_def)) => {
|
Ok((opaque, opaque_def)) => {
|
||||||
debug_assert!(can_patterns.len() >= 1);
|
debug_assert!(!can_patterns.is_empty());
|
||||||
|
|
||||||
if can_patterns.len() > 1 {
|
if can_patterns.len() > 1 {
|
||||||
env.problem(Problem::RuntimeError(
|
env.problem(Problem::RuntimeError(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue