From 96317686af61e936d643df7b2906855bab5c2104 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Mon, 4 Jan 2021 14:49:14 +0800 Subject: [PATCH] enabled clippy --- nac3core/src/lib.rs | 3 +++ shell.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nac3core/src/lib.rs b/nac3core/src/lib.rs index e122233b..69faf0be 100644 --- a/nac3core/src/lib.rs +++ b/nac3core/src/lib.rs @@ -1,3 +1,6 @@ +#![warn(clippy::all)] +#![allow(clippy::clone_double_ref)] + extern crate num_bigint; extern crate inkwell; extern crate rustpython_parser; diff --git a/shell.nix b/shell.nix index 1613ec3b..858e68b9 100644 --- a/shell.nix +++ b/shell.nix @@ -4,6 +4,6 @@ in pkgs.stdenv.mkDerivation { name = "nac3-env"; buildInputs = with pkgs; [ - llvm_10 clang_10 cargo rustc libffi libxml2 + llvm_10 clang_10 cargo rustc libffi libxml2 clippy ]; }