diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2020-10-13 15:03:02 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2020-10-13 15:03:02 -0700 |
commit | 9feb8f2134ebf404c84b7b0614621a6251f937f6 (patch) | |
tree | 99d5b7f7f56f88ad10b492f06fc7a47f3c90a983 | |
parent | bd7c27ef1822048fd1f1f0850244a9c063f671f3 (diff) |
Consolidate crate-wide warning attributes to crate level (lib.rs)
-rw-r--r-- | src/authority.rs | 2 | ||||
-rw-r--r-- | src/character_classes.rs | 2 | ||||
-rw-r--r-- | src/codec.rs | 2 | ||||
-rw-r--r-- | src/context.rs | 2 | ||||
-rw-r--r-- | src/error.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | src/parse_host_port.rs | 2 | ||||
-rw-r--r-- | src/percent_encoded_character_decoder.rs | 2 | ||||
-rw-r--r-- | src/uri.rs | 4 |
9 files changed, 2 insertions, 18 deletions
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)] @@ -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; @@ -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; |