mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
various: fix clippy lints
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I4bb649a5161460d8794dc5c93baa6cc46a6a6964
This commit is contained in:
parent
2d8ccf2a4f
commit
a68946d54d
2 changed files with 2 additions and 2 deletions
|
|
@ -6,6 +6,6 @@ pub trait QueryCommand {
|
|||
|
||||
impl QueryCommand for SqliteClipboardDb {
|
||||
fn query_delete(&self, query: &str) -> Result<usize, StashError> {
|
||||
<SqliteClipboardDb as ClipboardDb>::delete_query(self, query)
|
||||
<Self as ClipboardDb>::delete_query(self, query)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ impl ClipboardDb for SqliteClipboardDb {
|
|||
.execute(
|
||||
"INSERT INTO clipboard (contents, mime, content_hash) VALUES (?1, ?2, \
|
||||
?3)",
|
||||
params![buf, mime.map(|s| s.to_string()), content_hash],
|
||||
params![buf, mime, content_hash],
|
||||
)
|
||||
.map_err(|e| StashError::Store(e.to_string().into()))?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue