From aac3a50ec2e7fd31e4264e3c87b9500ad6dc9beb Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 12 May 2019 19:57:57 +0200 Subject: clippy --- dhall_syntax/src/core/context.rs | 4 ++-- dhall_syntax/src/core/expr.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'dhall_syntax/src/core') diff --git a/dhall_syntax/src/core/context.rs b/dhall_syntax/src/core/context.rs index 55bfff5..eeec121 100644 --- a/dhall_syntax/src/core/context.rs +++ b/dhall_syntax/src/core/context.rs @@ -56,13 +56,13 @@ impl Context { self.0.get(k).into_iter().flat_map(|v| v.iter()) } - pub fn iter<'a>(&'a self) -> impl Iterator { + pub fn iter(&self) -> impl Iterator { self.0 .iter() .flat_map(|(k, vs)| vs.iter().map(move |v| (k, v))) } - pub fn iter_keys<'a>(&'a self) -> impl Iterator)> { + pub fn iter_keys(&self) -> impl Iterator)> { self.0.iter() } } diff --git a/dhall_syntax/src/core/expr.rs b/dhall_syntax/src/core/expr.rs index f8b0215..69471d5 100644 --- a/dhall_syntax/src/core/expr.rs +++ b/dhall_syntax/src/core/expr.rs @@ -1,4 +1,3 @@ -#![allow(non_snake_case)] use std::rc::Rc; use crate::map::DupTreeMap; -- cgit v1.2.3