summaryrefslogtreecommitdiff
path: root/src/eval/func.rs
diff options
context:
space:
mode:
authorMarek Barvíř <barvirm@gmail.com>2023-04-04 17:10:06 +0200
committerGitHub <noreply@github.com>2023-04-04 17:10:06 +0200
commit1a36ce7fa8a26b498fe22958f50f1fb2880bebc4 (patch)
treed6b708e43da29d74ee62de55318671c40f29567c /src/eval/func.rs
parentcfc671d82482f8e021fa966a01359abba0f53bd2 (diff)
Disable clippy for specific lines (#503)
Diffstat (limited to 'src/eval/func.rs')
-rw-r--r--src/eval/func.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval/func.rs b/src/eval/func.rs
index e1472cca..e6402e87 100644
--- a/src/eval/func.rs
+++ b/src/eval/func.rs
@@ -17,6 +17,7 @@ use crate::syntax::{SourceId, Span, SyntaxNode};
use crate::World;
/// An evaluatable function.
+#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Clone, Hash)]
pub struct Func {
/// The internal representation.
@@ -281,6 +282,7 @@ pub(super) struct Closure {
impl Closure {
/// Call the function in the context with the arguments.
+ #[allow(clippy::too_many_arguments)]
#[comemo::memoize]
fn call(
this: &Func,