You've already forked lldap
mirror of
https://github.com/lldap/lldap.git
synced 2026-04-05 12:32:57 +01:00
clippy: remove unnecessary elided lifetimes
This commit is contained in:
committed by
nitnelave
parent
a959a50e07
commit
c5e0441cae
@@ -8,7 +8,7 @@ pub mod group {
|
|||||||
|
|
||||||
use super::AttributeDescription;
|
use super::AttributeDescription;
|
||||||
|
|
||||||
pub fn resolve_group_attribute_description(name: &str) -> Option<AttributeDescription<'_>> {
|
pub fn resolve_group_attribute_description(name: &'_ str) -> Option<AttributeDescription<'_>> {
|
||||||
match name {
|
match name {
|
||||||
"creation_date" => Some(AttributeDescription {
|
"creation_date" => Some(AttributeDescription {
|
||||||
attribute_identifier: name,
|
attribute_identifier: name,
|
||||||
@@ -39,7 +39,9 @@ pub mod group {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn resolve_group_attribute_description_or_default(name: &str) -> AttributeDescription<'_> {
|
pub fn resolve_group_attribute_description_or_default(
|
||||||
|
name: &'_ str,
|
||||||
|
) -> AttributeDescription<'_> {
|
||||||
match resolve_group_attribute_description(name) {
|
match resolve_group_attribute_description(name) {
|
||||||
Some(d) => d,
|
Some(d) => d,
|
||||||
None => AttributeDescription {
|
None => AttributeDescription {
|
||||||
@@ -55,7 +57,7 @@ pub mod user {
|
|||||||
|
|
||||||
use super::AttributeDescription;
|
use super::AttributeDescription;
|
||||||
|
|
||||||
pub fn resolve_user_attribute_description(name: &str) -> Option<AttributeDescription<'_>> {
|
pub fn resolve_user_attribute_description(name: &'_ str) -> Option<AttributeDescription<'_>> {
|
||||||
match name {
|
match name {
|
||||||
"avatar" => Some(AttributeDescription {
|
"avatar" => Some(AttributeDescription {
|
||||||
attribute_identifier: name,
|
attribute_identifier: name,
|
||||||
@@ -111,7 +113,9 @@ pub mod user {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn resolve_user_attribute_description_or_default(name: &str) -> AttributeDescription<'_> {
|
pub fn resolve_user_attribute_description_or_default(
|
||||||
|
name: &'_ str,
|
||||||
|
) -> AttributeDescription<'_> {
|
||||||
match resolve_user_attribute_description(name) {
|
match resolve_user_attribute_description(name) {
|
||||||
Some(d) => d,
|
Some(d) => d,
|
||||||
None => AttributeDescription {
|
None => AttributeDescription {
|
||||||
|
|||||||
Reference in New Issue
Block a user