From 9feb8f2134ebf404c84b7b0614621a6251f937f6 Mon Sep 17 00:00:00 2001 From: Richard Walters Date: Tue, 13 Oct 2020 15:03:02 -0700 Subject: Consolidate crate-wide warning attributes to crate level (lib.rs) --- src/authority.rs | 2 -- src/character_classes.rs | 2 -- src/codec.rs | 2 -- src/context.rs | 2 -- src/error.rs | 2 -- src/lib.rs | 2 ++ src/parse_host_port.rs | 2 -- src/percent_encoded_character_decoder.rs | 2 -- src/uri.rs | 4 ---- 9 files changed, 2 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/authority.rs b/src/authority.rs index b5a377c..d0b49d7 100644 --- a/src/authority.rs +++ b/src/authority.rs @@ -1,5 +1,3 @@ -#![warn(clippy::pedantic)] - use super::character_classes::{ REG_NAME_NOT_PCT_ENCODED, USER_INFO_NOT_PCT_ENCODED, diff --git a/src/character_classes.rs b/src/character_classes.rs index cb4d202..a9e7b37 100644 --- a/src/character_classes.rs +++ b/src/character_classes.rs @@ -1,5 +1,3 @@ -#![warn(clippy::pedantic)] - use once_cell::sync::Lazy; use std::collections::HashSet; diff --git a/src/codec.rs b/src/codec.rs index 38017cd..22d9000 100644 --- a/src/codec.rs +++ b/src/codec.rs @@ -1,5 +1,3 @@ -#![warn(clippy::pedantic)] - use std::collections::HashSet; use std::convert::TryFrom; diff --git a/src/context.rs b/src/context.rs index ef8c7cb..bbc6613 100644 --- a/src/context.rs +++ b/src/context.rs @@ -1,5 +1,3 @@ -#![warn(clippy::pedantic)] - #[derive(Debug, Clone, Copy, PartialEq)] pub enum Context { Fragment, diff --git a/src/error.rs b/src/error.rs index e37a02f..9f710fa 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,5 +1,3 @@ -#![warn(clippy::pedantic)] - use super::context::Context; #[derive(Debug, Clone, thiserror::Error, PartialEq)] diff --git a/src/lib.rs b/src/lib.rs index 808b5fa..377310f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,6 @@ #![warn(clippy::pedantic)] +#![allow(clippy::non_ascii_literal)] +#![warn(missing_docs)] #[cfg(test)] #[macro_use] diff --git a/src/parse_host_port.rs b/src/parse_host_port.rs index 2dcdde9..e7d65c0 100644 --- a/src/parse_host_port.rs +++ b/src/parse_host_port.rs @@ -1,5 +1,3 @@ -#![warn(clippy::pedantic)] - use std::convert::TryFrom; use super::character_classes::{ diff --git a/src/percent_encoded_character_decoder.rs b/src/percent_encoded_character_decoder.rs index 8a11c8d..fc2e9ef 100644 --- a/src/percent_encoded_character_decoder.rs +++ b/src/percent_encoded_character_decoder.rs @@ -1,5 +1,3 @@ -#![warn(clippy::pedantic)] - use std::convert::TryFrom; use super::error::Error; diff --git a/src/uri.rs b/src/uri.rs index 6520e46..426ba25 100644 --- a/src/uri.rs +++ b/src/uri.rs @@ -1,7 +1,3 @@ -#![warn(clippy::pedantic)] -#![allow(clippy::missing_errors_doc)] -#![allow(clippy::non_ascii_literal)] - use std::collections::HashSet; use super::authority::Authority; -- cgit v1.2.3