From 694a40e503e2e1990264834b7b216ee9997c9cba Mon Sep 17 00:00:00 2001 From: Ayaz Hafiz Date: Thu, 22 Jun 2023 14:30:16 -0500 Subject: [PATCH] Clippy --- crates/compiler/solve/src/env.rs | 2 +- crates/compiler/solve/src/lib.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/compiler/solve/src/env.rs b/crates/compiler/solve/src/env.rs index 1f795046987..d55a571a904 100644 --- a/crates/compiler/solve/src/env.rs +++ b/crates/compiler/solve/src/env.rs @@ -75,7 +75,7 @@ impl<'a> Env<'a> { } /// Retrieves an environment for unification. - pub fn uenv<'r>(&'r mut self) -> UEnv<'r> { + pub fn uenv(&mut self) -> UEnv { UEnv::new(self.subs) } } diff --git a/crates/compiler/solve/src/lib.rs b/crates/compiler/solve/src/lib.rs index bd045372574..cf9862d56b3 100644 --- a/crates/compiler/solve/src/lib.rs +++ b/crates/compiler/solve/src/lib.rs @@ -3,6 +3,8 @@ #![warn(clippy::dbg_macro)] // See github.com/roc-lang/roc/issues/800 for discussion of the large_enum_variant check. #![allow(clippy::large_enum_variant)] +// TODO to be removed +#![allow(clippy::too_many_arguments)] pub mod ability; pub mod module;