Skip to content

Commit

Permalink
fix(ci): remove superfluous lifetimes (#248)
Browse files Browse the repository at this point in the history
lifetimes that were provided in the function parameters but not in the
return values led to errors while running cargo check. remove these
lifetimes since they can be elided automatically
  • Loading branch information
sseemayer authored Jan 16, 2025
1 parent 1407bcb commit 406d87e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/db/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl Group {
}

#[cfg(feature = "_merge")]
pub(crate) fn find_group<'a>(&'a self, path: &Vec<Uuid>) -> Option<&Group> {
pub(crate) fn find_group(&self, path: &Vec<Uuid>) -> Option<&Group> {
let path: Vec<String> = path.iter().map(|p| p.to_string()).collect();
let node_ref = match self.get_by_uuid(&path) {
Some(n) => n,
Expand All @@ -219,7 +219,7 @@ impl Group {
}

#[cfg(feature = "_merge")]
pub(crate) fn find_entry<'a>(&'a self, path: &Vec<Uuid>) -> Option<&Entry> {
pub(crate) fn find_entry(&self, path: &Vec<Uuid>) -> Option<&Entry> {
let path: Vec<String> = path.iter().map(|p| p.to_string()).collect();
let node_ref = match self.get_by_uuid(&path) {
Some(n) => n,
Expand All @@ -232,7 +232,7 @@ impl Group {
}

#[cfg(feature = "_merge")]
pub(crate) fn find_entry_mut<'a>(&'a mut self, path: &Vec<Uuid>) -> Option<&mut Entry> {
pub(crate) fn find_entry_mut(&mut self, path: &Vec<Uuid>) -> Option<&mut Entry> {
let path: Vec<String> = path.iter().map(|p| p.to_string()).collect();
let node_ref = match self.get_by_uuid_mut(&path) {
Some(n) => n,
Expand All @@ -245,7 +245,7 @@ impl Group {
}

#[cfg(feature = "_merge")]
pub(crate) fn find_group_mut<'a>(&'a mut self, path: &Vec<Uuid>) -> Option<&mut Group> {
pub(crate) fn find_group_mut(&mut self, path: &Vec<Uuid>) -> Option<&mut Group> {
let path: Vec<String> = path.iter().map(|p| p.to_string()).collect();
let node_ref = match self.get_by_uuid_mut(&path) {
Some(n) => n,
Expand Down

0 comments on commit 406d87e

Please sign in to comment.