Skip to content

Commit e5fe4eb

Browse files
committed
rustfmt
1 parent 74a758a commit e5fe4eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/controllers/krate/search.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ use crate::models::krate::{canon_crate_name, ALL_COLUMNS};
3333
/// function out to cover the different use cases, and create unit tests
3434
/// for them.
3535
pub fn search(req: &mut dyn Request) -> CargoResult<Response> {
36-
use diesel::sql_types::{Bool, Text};
3736
use diesel::dsl::sql;
37+
use diesel::sql_types::{Bool, Text};
3838

3939
sql_function!(fn plainto_tsquery(lang: Text, query: Text) -> TsQuery);
4040

@@ -66,7 +66,8 @@ pub fn search(req: &mut dyn Request) -> CargoResult<Response> {
6666
.bind::<Text, _>(q_string)
6767
.sql(")");
6868
query = query.filter(
69-
q.clone().matches(crates::textsearchable_index_col)
69+
q.clone()
70+
.matches(crates::textsearchable_index_col)
7071
.or(Crate::like_name(&q_string)),
7172
);
7273

0 commit comments

Comments
 (0)