aboutsummaryrefslogtreecommitdiff
path: root/src/uri.rs
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2021-03-29 11:21:58 -0700
committerRichard Walters <rwalters@digitalstirling.com>2021-03-29 11:21:58 -0700
commita4b81f82d6cd427f83c52777b5f5a437d91cce8d (patch)
tree7fa83b761a74f6faf73c61ae8f904377938c2119 /src/uri.rs
parent9d767affdc3c9f478329b7823837e154a856f9f2 (diff)
Version 1.3.1
* Suppress more lints caused by `named_tuple`. * Remove unnecessary `Result` from infallible functions.
Diffstat (limited to 'src/uri.rs')
-rw-r--r--src/uri.rs36
1 files changed, 34 insertions, 2 deletions
diff --git a/src/uri.rs b/src/uri.rs
index 0184b26..bd1b82c 100644
--- a/src/uri.rs
+++ b/src/uri.rs
@@ -873,6 +873,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn path_corner_cases() {
named_tuple!(
struct TestVector {
@@ -901,6 +904,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn relative_vs_non_relative_references() {
named_tuple!(
struct TestVector {
@@ -926,6 +932,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn relative_vs_non_relative_paths() {
named_tuple!(
struct TestVector {
@@ -957,9 +966,10 @@ mod tests {
}
#[test]
- // NOTE: This lint has to be disabled at the test level because
- // it's triggered inside the `named_tuple!` macro expansion.
+ // NOTE: These lints are disabled because they're triggered inside the
+ // `named_tuple!` macro expansion.
#[allow(clippy::ref_option_ref)]
+ #[allow(clippy::from_over_into)]
fn query_and_fragment_elements() {
named_tuple!(
struct TestVector {
@@ -1041,6 +1051,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn scheme_barely_legal() {
named_tuple!(
struct TestVector {
@@ -1130,6 +1143,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn path_barely_legal() {
named_tuple!(
struct TestVector {
@@ -1189,6 +1205,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn query_barely_legal() {
named_tuple!(
struct TestVector {
@@ -1248,6 +1267,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn fragment_barely_legal() {
named_tuple!(
struct TestVector {
@@ -1275,6 +1297,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn paths_with_percent_encoded_characters() {
named_tuple!(
struct TestVector {
@@ -1305,6 +1330,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn normalize_path() {
named_tuple!(
struct TestVector {
@@ -1384,6 +1412,9 @@ mod tests {
}
#[test]
+ // NOTE: This lint is disabled because it's triggered inside the
+ // `named_tuple!` macro expansion.
+ #[allow(clippy::from_over_into)]
fn reference_resolution() {
named_tuple!(
struct TestVector {
@@ -1464,6 +1495,7 @@ mod tests {
// triggered inside the `named_tuple!` macro expansion.
#[allow(clippy::too_many_arguments)]
#[allow(clippy::ref_option_ref)]
+ #[allow(clippy::from_over_into)]
fn generate_string() {
named_tuple!(
struct TestVector {