From d891529da951d36607488b73ac7588dcb17f0111 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Mon, 5 Jul 2021 10:00:13 +0200 Subject: [PATCH] Add allow warnings for nonstandard macro braces The warnings come from the macros of libraries that we use, so we can't change them. --- app/src/lib.rs | 1 + model/src/lib.rs | 1 + src/main.rs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/app/src/lib.rs b/app/src/lib.rs index 12fe7d0..0be0103 100644 --- a/app/src/lib.rs +++ b/app/src/lib.rs @@ -1,4 +1,5 @@ #![recursion_limit = "256"] +#![allow(clippy::nonstandard_macro_braces)] mod api; mod app; mod cookies; diff --git a/model/src/lib.rs b/model/src/lib.rs index a5f693f..690d457 100644 --- a/model/src/lib.rs +++ b/model/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::nonstandard_macro_braces)] use chrono::prelude::*; use serde::{Deserialize, Serialize}; use std::collections::HashSet; diff --git a/src/main.rs b/src/main.rs index 258dcf8..f65ea42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,6 @@ #![forbid(unsafe_code)] +#![allow(clippy::nonstandard_macro_braces)] + use crate::{ domain::{ handler::BackendHandler, sql_backend_handler::SqlBackendHandler, sql_tables::PoolOptions,