From 1e69d1c68ec00f3ddcd4e3d7454daef9b6de3aa4 Mon Sep 17 00:00:00 2001 From: collin Date: Thu, 25 Mar 2021 14:03:22 -0700 Subject: [PATCH] allow clippy::upper_case_acroynms for imported pest structs --- Cargo.lock | 4 ++-- input/src/ast.rs | 2 +- input/src/common/eoi.rs | 1 + input/src/lib.rs | 1 - 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 39b270a271..4ec3ace7a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2828,9 +2828,9 @@ dependencies = [ [[package]] name = "tinytemplate" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2ada8616fad06a2d0c455adc530de4ef57605a8120cc65da9653e0e9623ca74" +checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc" dependencies = [ "serde", "serde_json", diff --git a/input/src/ast.rs b/input/src/ast.rs index cfb3deef07..1a5ec0d99e 100644 --- a/input/src/ast.rs +++ b/input/src/ast.rs @@ -13,10 +13,10 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . +#![allow(clippy::upper_case_acronyms)] //! Abstract syntax tree (ast) representation from leo-input.pest. use pest::{error::Error, iterators::Pairs, Parser, Span}; - #[derive(Parser)] #[grammar = "leo-input.pest"] pub struct LanguageParser; diff --git a/input/src/common/eoi.rs b/input/src/common/eoi.rs index 738cd6e0c2..3eda4b51e9 100644 --- a/input/src/common/eoi.rs +++ b/input/src/common/eoi.rs @@ -13,6 +13,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . +#![allow(clippy::upper_case_acronyms)] use crate::ast::Rule; diff --git a/input/src/lib.rs b/input/src/lib.rs index e2537eeeb1..c8f709b229 100644 --- a/input/src/lib.rs +++ b/input/src/lib.rs @@ -13,7 +13,6 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . - #[macro_use] extern crate pest_derive; #[macro_use]