various: fix clippy lints

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I4bb649a5161460d8794dc5c93baa6cc46a6a6964
This commit is contained in:
raf 2025-11-13 00:05:20 +03:00
commit a68946d54d
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 2 additions and 2 deletions

View file

@ -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)
}
}

View file

@ -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()))?;