aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-13 15:03:02 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-13 15:03:02 -0700
commit9feb8f2134ebf404c84b7b0614621a6251f937f6 (patch)
tree99d5b7f7f56f88ad10b492f06fc7a47f3c90a983 /src
parentbd7c27ef1822048fd1f1f0850244a9c063f671f3 (diff)
Consolidate crate-wide warning attributes to crate level (lib.rs)
Diffstat (limited to 'src')
-rw-r--r--src/authority.rs2
-rw-r--r--src/character_classes.rs2
-rw-r--r--src/codec.rs2
-rw-r--r--src/context.rs2
-rw-r--r--src/error.rs2
-rw-r--r--src/lib.rs2
-rw-r--r--src/parse_host_port.rs2
-rw-r--r--src/percent_encoded_character_decoder.rs2
-rw-r--r--src/uri.rs4
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)]
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;