aboutsummaryrefslogtreecommitdiffstats
path: root/src/query.rs
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2018-04-17 21:16:13 +0200
committerDirk Van Haerenborgh <vhdirk@gmail.com>2018-04-17 21:16:13 +0200
commit1be0cc6ab7920208b3d6986dbb6076846d758c17 (patch)
tree068ef89149b9719294272d4bdee81d7ff413519b /src/query.rs
parentcaf1b053912d5fe5a893eb545bea20bfc4619d5d (diff)
downloadmail-1be0cc6ab7920208b3d6986dbb6076846d758c17.tar.gz
make clippy happy
Diffstat (limited to 'src/query.rs')
-rw-r--r--src/query.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/query.rs b/src/query.rs
index b84d321..125e63d 100644
--- a/src/query.rs
+++ b/src/query.rs
@@ -1,4 +1,3 @@
-use std;
use std::{
ops,
marker,
@@ -24,7 +23,7 @@ pub struct Query<'d>(
impl<'d> Query<'d> {
- pub fn create(db: &'d Database, query_string: &String) -> Result<Self> {
+ pub fn create(db: &'d Database, query_string: &str) -> Result<Self> {
db.create_query(query_string)
}
@@ -72,7 +71,7 @@ impl<'d> Query<'d> {
)
}.as_result());
- return Ok(cnt);
+ Ok(cnt)
}
pub fn search_threads<'q>(self: &'d Self) -> Result<Threads<'q, 'd>>
@@ -96,7 +95,7 @@ impl<'d> Query<'d> {
)
}.as_result());
- return Ok(cnt);
+ Ok(cnt)
}
}