Skip to content
Snippets Groups Projects
Commit c44b9dab authored by Robin Appelman's avatar Robin Appelman
Browse files

elide lifetime


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 09db5fba
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment