From c44b9dab26a81c949157047fac438d1ed9ecc0d5 Mon Sep 17 00:00:00 2001 From: Robin Appelman <robin@icewind.nl> Date: Tue, 26 Oct 2021 16:20:25 +0200 Subject: [PATCH] elide lifetime Signed-off-by: Robin Appelman <robin@icewind.nl> --- lib/Command/Reset.php | 3 --- src/storage_mapping.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Command/Reset.php b/lib/Command/Reset.php index a794649..b7f2911 100644 --- a/lib/Command/Reset.php +++ b/lib/Command/Reset.php @@ -23,12 +23,9 @@ declare(strict_types=1); namespace OCA\NotifyPush\Command; - use OCA\NotifyPush\Queue\IQueue; use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class Reset extends Command { diff --git a/src/storage_mapping.rs b/src/storage_mapping.rs index 9fdaa94..d44a269 100644 --- a/src/storage_mapping.rs +++ b/src/storage_mapping.rs @@ -60,7 +60,7 @@ impl StorageMapping { Self::from_connection(connection, prefix).await } - async fn get_storage_mapping<'a>(&'a self, storage: u32) -> Result<Ref<'a, u32, CachedAccess>> { + async fn get_storage_mapping(&self, storage: u32) -> Result<Ref<'_, u32, CachedAccess>> { if let Some(cached) = self.cache.get(&storage).filter(|cached| cached.is_valid()) { Ok(cached) } else { -- GitLab