Skip to content

Commit ddbf1e9

Browse files
committed
chore: fix needless_lifetimes clippy warnings
1 parent 9560e27 commit ddbf1e9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl Flag<'static> {
171171
}
172172
}
173173

174-
impl<'a> From<String> for Flag<'a> {
174+
impl From<String> for Flag<'_> {
175175
fn from(s: String) -> Self {
176176
if let Some(f) = Flag::system(&s) {
177177
f

src/types/quota.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub enum QuotaResourceName {
1414
Atom(String),
1515
}
1616

17-
impl<'a> From<QuotaResourceNameRef<'a>> for QuotaResourceName {
17+
impl From<QuotaResourceNameRef<'_>> for QuotaResourceName {
1818
fn from(name: QuotaResourceNameRef<'_>) -> Self {
1919
match name {
2020
QuotaResourceNameRef::Message => QuotaResourceName::Message,
@@ -35,7 +35,7 @@ pub struct QuotaResource {
3535
pub limit: u64,
3636
}
3737

38-
impl<'a> From<QuotaResourceRef<'a>> for QuotaResource {
38+
impl From<QuotaResourceRef<'_>> for QuotaResource {
3939
fn from(resource: QuotaResourceRef<'_>) -> Self {
4040
Self {
4141
name: resource.name.into(),
@@ -61,7 +61,7 @@ pub struct Quota {
6161
pub resources: Vec<QuotaResource>,
6262
}
6363

64-
impl<'a> From<QuotaRef<'a>> for Quota {
64+
impl From<QuotaRef<'_>> for Quota {
6565
fn from(quota: QuotaRef<'_>) -> Self {
6666
Self {
6767
root_name: quota.root_name.to_string(),
@@ -79,7 +79,7 @@ pub struct QuotaRoot {
7979
pub quota_root_names: Vec<String>,
8080
}
8181

82-
impl<'a> From<QuotaRootRef<'a>> for QuotaRoot {
82+
impl From<QuotaRootRef<'_>> for QuotaRoot {
8383
fn from(root: QuotaRootRef<'_>) -> Self {
8484
Self {
8585
mailbox_name: root.mailbox_name.to_string(),

0 commit comments

Comments
 (0)