Fix clippy warning

This commit is contained in:
ayazhafiz 2022-02-27 12:21:20 -05:00
parent 39b0857049
commit cf628ed4ef

View file

@ -194,7 +194,7 @@ pub fn canonicalize_pattern<'a>(
// If this opaque ref had an argument, we would be in the "Apply" branch.
let loc_name = Loc::at(region, (*name).into());
env.problem(Problem::RuntimeError(RuntimeError::OpaqueNotApplied(
loc_name.clone(),
loc_name,
)));
Pattern::UnsupportedPattern(region)
}