stash/src/commands/delete.rs
NotAShelf b0820a1940
modularize codebase
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69648ea836bfeb539450db14a666c623412e
2025-08-12 15:01:32 +03:00

12 lines
262 B
Rust

use crate::db::{ClipboardDb, SledClipboardDb};
use std::io::Read;
pub trait DeleteCommand {
fn delete(&self, input: impl Read);
}
impl DeleteCommand for SledClipboardDb {
fn delete(&self, input: impl Read) {
self.delete_entries(input);
}
}