From 222a9126034864bb432a96226081024a4c1adf30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gianguido=20Sor=C3=A0?= Date: Mon, 18 Jul 2022 17:31:08 +0200 Subject: [PATCH] chore(vault): don't generalize delete on storage, pass ContentKind as ref --- apps/vault/src/storage.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/vault/src/storage.rs b/apps/vault/src/storage.rs index e2d977294..6733f88c7 100644 --- a/apps/vault/src/storage.rs +++ b/apps/vault/src/storage.rs @@ -186,7 +186,7 @@ impl Manager { pub fn get_record( &self, - kind: ContentKind, + kind: &ContentKind, key_name: &str, ) -> Result where @@ -200,7 +200,7 @@ impl Manager { pub fn update( &mut self, - kind: ContentKind, + kind: &ContentKind, key_name: &str, record: T, ) -> Result<(), Error> @@ -216,13 +216,11 @@ impl Manager { self.new_record(record, Some(basis)) } - pub fn delete( + pub fn delete( &mut self, kind: ContentKind, key_name: &str, ) -> Result<(), Error> - where - Error: From<>>::Error>, { let settings = kind.settings();