fix: add lifetime annotation (clippy)

This commit is contained in:
qwjyh 2024-12-01 19:19:28 +09:00
parent 772689ab6a
commit 8b0dbb2314
2 changed files with 2 additions and 2 deletions

View file

@ -180,7 +180,7 @@ impl Backup {
&self.name
}
pub fn device<'a>(&'a self, devices: &'a [Device]) -> Option<&Device> {
pub fn device<'a>(&'a self, devices: &'a [Device]) -> Option<&'a Device> {
devices.iter().find(|dev| dev.name() == self.device)
}

View file

@ -127,7 +127,7 @@ impl StorageExt for Directory {
}
// Get parent `&Storage` of directory.
fn parent<'a>(&'a self, storages: &'a Storages) -> Option<&Storage> {
fn parent<'a>(&'a self, storages: &'a Storages) -> Option<&'a Storage> {
storages.get(&self.parent)
}
}