1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 14:30:36 +02:00

standardise compiler lints across all crates (#226)

This commit is contained in:
Rob Ede
2020-12-12 23:24:00 +00:00
committed by GitHub
parent 93889776c4
commit 4e43216b99
15 changed files with 49 additions and 14 deletions

View File

@ -42,7 +42,7 @@ macro_rules! parse_single_value {
};
}
pub struct PathDeserializer<'de, T: ResourcePath + 'de> {
pub struct PathDeserializer<'de, T: ResourcePath> {
path: &'de Path<T>,
}

View File

@ -1,5 +1,9 @@
//! Resource path matching library.
#![deny(rust_2018_idioms, nonstandard_style)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
mod de;
mod path;
mod resource;

View File

@ -158,7 +158,7 @@ impl<T: ResourcePath> Path<T> {
}
/// Return iterator to items in parameter container
pub fn iter(&self) -> PathIter<T> {
pub fn iter(&self) -> PathIter<'_, T> {
PathIter {
idx: 0,
params: self,