Drop unnecessary named lifetimes

This commit is contained in:
Jonas Platte 2020-08-28 21:32:58 +02:00
parent 409fbcc9d7
commit ab6c56b7de
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
8 changed files with 9 additions and 9 deletions

View File

@ -87,7 +87,7 @@ ruma_api! {
error: UiaaResponse
}
impl<'a> Request<'a> {
impl Request<'_> {
/// Creates a new `Request` with all parameters defaulted.
pub fn new() -> Self {
Default::default()

View File

@ -65,7 +65,7 @@ ruma_api! {
error: crate::Error
}
impl<'a> Request<'a> {
impl Request<'_> {
/// Creates an empty `Request`.
pub fn new() -> Self {
Default::default()

View File

@ -97,7 +97,7 @@ ruma_api! {
error: crate::Error
}
impl<'a> Request<'a> {
impl Request<'_> {
/// Creates a `Request` will all-default parameters.
pub fn new() -> Self {
Default::default()

View File

@ -65,7 +65,7 @@ pub struct Categories<'a> {
pub room_events: Option<Criteria<'a>>,
}
impl<'a> Categories<'a> {
impl Categories<'_> {
/// Creates an empty `Categories`.
pub fn new() -> Self {
Default::default()
@ -259,7 +259,7 @@ pub struct Groupings<'a> {
pub group_by: &'a [Grouping],
}
impl<'a> Groupings<'a> {
impl Groupings<'_> {
/// Creates an empty `Groupings`.
pub fn new() -> Self {
Default::default()

View File

@ -96,7 +96,7 @@ ruma_api! {
error: crate::Error
}
impl<'a> Request<'a> {
impl Request<'_> {
/// Creates an empty `Request`.
pub fn new() -> Self {
Default::default()

View File

@ -104,7 +104,7 @@ pub struct Filter<'a> {
pub generic_search_term: Option<&'a str>,
}
impl<'a> Filter<'a> {
impl Filter<'_> {
/// Creates an empty `Filter`.
pub fn new() -> Self {
Default::default()

View File

@ -52,7 +52,7 @@ ruma_api! {
}
}
impl<'a> Request<'a> {
impl Request<'_> {
/// Creates an empty `Request`.
pub fn new() -> Self {
Default::default()

View File

@ -53,7 +53,7 @@ ruma_api! {
}
}
impl<'a> Request<'a> {
impl Request<'_> {
/// Creates an empty `Request`.
pub fn new() -> Self {
Default::default()