mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +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>(
|
pub fn get_record<T: StorageContent>(
|
||||||
&self,
|
&self,
|
||||||
kind: ContentKind,
|
kind: &ContentKind,
|
||||||
key_name: &str,
|
key_name: &str,
|
||||||
) -> Result<T, Error>
|
) -> Result<T, Error>
|
||||||
where
|
where
|
||||||
|
|
@ -200,7 +200,7 @@ impl Manager {
|
||||||
|
|
||||||
pub fn update<T: StorageContent>(
|
pub fn update<T: StorageContent>(
|
||||||
&mut self,
|
&mut self,
|
||||||
kind: ContentKind,
|
kind: &ContentKind,
|
||||||
key_name: &str,
|
key_name: &str,
|
||||||
record: T,
|
record: T,
|
||||||
) -> Result<(), Error>
|
) -> Result<(), Error>
|
||||||
|
|
@ -216,13 +216,11 @@ impl Manager {
|
||||||
self.new_record(record, Some(basis))
|
self.new_record(record, Some(basis))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn delete<T: StorageContent>(
|
pub fn delete(
|
||||||
&mut self,
|
&mut self,
|
||||||
kind: ContentKind,
|
kind: ContentKind,
|
||||||
key_name: &str,
|
key_name: &str,
|
||||||
) -> Result<(), Error>
|
) -> Result<(), Error>
|
||||||
where
|
|
||||||
Error: From<<T as TryFrom<Vec<u8>>>::Error>,
|
|
||||||
{
|
{
|
||||||
let settings = kind.settings();
|
let settings = kind.settings();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue