mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
chore(vault): don't generalize delete on storage, pass ContentKind as
ref
This commit is contained in:
parent
b1c6690826
commit
222a912603
1 changed files with 3 additions and 5 deletions
|
|
@ -186,7 +186,7 @@ impl Manager {
|
|||
|
||||
pub fn get_record<T: StorageContent>(
|
||||
&self,
|
||||
kind: ContentKind,
|
||||
kind: &ContentKind,
|
||||
key_name: &str,
|
||||
) -> Result<T, Error>
|
||||
where
|
||||
|
|
@ -200,7 +200,7 @@ impl Manager {
|
|||
|
||||
pub fn update<T: StorageContent>(
|
||||
&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<T: StorageContent>(
|
||||
pub fn delete(
|
||||
&mut self,
|
||||
kind: ContentKind,
|
||||
key_name: &str,
|
||||
) -> Result<(), Error>
|
||||
where
|
||||
Error: From<<T as TryFrom<Vec<u8>>>::Error>,
|
||||
{
|
||||
let settings = kind.settings();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue