From 820214615547101f8f2b5de209b5189968bddfee Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 5 Apr 2020 17:37:15 +0100 Subject: Fix clippy warnings --- dhall/src/lib.rs | 3 +++ dhall/src/semantics/resolve/env.rs | 11 ++++------- dhall/src/semantics/tck/env.rs | 4 ++-- serde_dhall/src/static_type.rs | 6 ++---- serde_dhall/src/value.rs | 4 ++-- 5 files changed, 13 insertions(+), 15 deletions(-) diff --git a/dhall/src/lib.rs b/dhall/src/lib.rs index adca2de..392c344 100644 --- a/dhall/src/lib.rs +++ b/dhall/src/lib.rs @@ -1,7 +1,10 @@ #![doc(html_root_url = "https://docs.rs/dhall/0.4.0")] #![allow( + clippy::implicit_hasher, clippy::module_inception, clippy::needless_lifetimes, + clippy::new_ret_no_self, + clippy::new_without_default, clippy::useless_format )] diff --git a/dhall/src/semantics/resolve/env.rs b/dhall/src/semantics/resolve/env.rs index d5bb15b..d7ff0ae 100644 --- a/dhall/src/semantics/resolve/env.rs +++ b/dhall/src/semantics/resolve/env.rs @@ -5,7 +5,7 @@ use crate::semantics::{AlphaVar, ImportLocation, TypedHir, VarEnv}; use crate::syntax::{Label, V}; /// Environment for resolving names. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Default)] pub struct NameEnv { names: Vec