mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-13 06:23:47 +00:00
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69648ea836bfeb539450db14a666c623412e
12 lines
262 B
Rust
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);
|
|
}
|
|
}
|