mirror of
https://github.com/qwjyh/xdbm
synced 2024-12-04 20:41:04 +09:00
fix: add lifetime annotation (clippy)
This commit is contained in:
parent
772689ab6a
commit
8b0dbb2314
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue