Drop unnecessary named lifetimes
This commit is contained in:
parent
409fbcc9d7
commit
ab6c56b7de
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -52,7 +52,7 @@ ruma_api! {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Request<'a> {
|
||||
impl Request<'_> {
|
||||
/// Creates an empty `Request`.
|
||||
pub fn new() -> Self {
|
||||
Default::default()
|
||||
|
@ -53,7 +53,7 @@ ruma_api! {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Request<'a> {
|
||||
impl Request<'_> {
|
||||
/// Creates an empty `Request`.
|
||||
pub fn new() -> Self {
|
||||
Default::default()
|
||||
|
Loading…
x
Reference in New Issue
Block a user