diff --git a/src/commands/query.rs b/src/commands/query.rs index c5b5851..e1bd465 100644 --- a/src/commands/query.rs +++ b/src/commands/query.rs @@ -6,6 +6,6 @@ pub trait QueryCommand { impl QueryCommand for SqliteClipboardDb { fn query_delete(&self, query: &str) -> Result { - ::delete_query(self, query) + ::delete_query(self, query) } } diff --git a/src/db/mod.rs b/src/db/mod.rs index fa27cce..0b906d5 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -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()))?;