From 0dfb92005c259df051db77159e7a6dd7ff0dd9b5 Mon Sep 17 00:00:00 2001 From: "Aode (Lion)" Date: Mon, 17 Jan 2022 14:13:14 -0600 Subject: [PATCH] Clippy --- src/base.rs | 2 +- src/checked.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base.rs b/src/base.rs index cca27af..8447e88 100644 --- a/src/base.rs +++ b/src/base.rs @@ -256,7 +256,7 @@ pub trait BaseExt: AsBase { /// # Ok(()) /// # } /// ``` - fn check_authority<'a, T: AsRef>(&self, iri: T) -> Result { + fn check_authority>(&self, iri: T) -> Result { let authority = self .id_unchecked() .and_then(|id| id.authority_components()) diff --git a/src/checked.rs b/src/checked.rs index 96b4f58..8ec21ee 100644 --- a/src/checked.rs +++ b/src/checked.rs @@ -11,7 +11,7 @@ impl std::fmt::Display for CheckError { impl std::error::Error for CheckError {} -pub(crate) fn check<'a, T: AsRef>( +pub(crate) fn check>( iri: T, host: &str, port: Option<&str>,