File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ use crate::models::krate::{canon_crate_name, ALL_COLUMNS};
33
33
/// function out to cover the different use cases, and create unit tests
34
34
/// for them.
35
35
pub fn search ( req : & mut dyn Request ) -> CargoResult < Response > {
36
- use diesel:: sql_types:: { Bool , Text } ;
37
36
use diesel:: dsl:: sql;
37
+ use diesel:: sql_types:: { Bool , Text } ;
38
38
39
39
sql_function ! ( fn plainto_tsquery( lang: Text , query: Text ) -> TsQuery ) ;
40
40
@@ -66,7 +66,8 @@ pub fn search(req: &mut dyn Request) -> CargoResult<Response> {
66
66
. bind :: < Text , _ > ( q_string)
67
67
. sql ( ")" ) ;
68
68
query = query. filter (
69
- q. clone ( ) . matches ( crates:: textsearchable_index_col)
69
+ q. clone ( )
70
+ . matches ( crates:: textsearchable_index_col)
70
71
. or ( Crate :: like_name ( & q_string) ) ,
71
72
) ;
72
73
You can’t perform that action at this time.
0 commit comments