aboutsummaryrefslogtreecommitdiff
path: root/src/authority.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/authority.rs
parent9d767affdc3c9f478329b7823837e154a856f9f2 (diff)
Version 1.3.1
* Suppress more lints caused by `named_tuple`. * Remove unnecessary `Result` from infallible functions.
Diffstat (limited to 'src/authority.rs')
-rw-r--r--src/authority.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/authority.rs b/src/authority.rs
index f219ec0..f7505f8 100644
--- a/src/authority.rs
+++ b/src/authority.rs
@@ -184,9 +184,10 @@ mod tests {
use super::*;
#[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 userinfo() {
named_tuple!(
struct TestVector {
@@ -221,6 +222,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 userinfo_barely_legal() {
named_tuple!(
struct TestVector {
@@ -258,6 +262,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 host_barely_legal() {
named_tuple!(
struct TestVector {