1- use crates_io :: schema:: categories;
1+ use crate :: schema:: categories;
22use crates_io_test_db:: TestDatabase ;
33use diesel:: * ;
44
@@ -50,7 +50,7 @@ fn sync_adds_new_categories() {
5050 let test_db = TestDatabase :: new ( ) ;
5151 let mut conn = test_db. connect ( ) ;
5252
53- :: crates_io :: boot:: categories:: sync_with_connection ( ALGORITHMS_AND_SUCH , & mut conn) . unwrap ( ) ;
53+ crate :: boot:: categories:: sync_with_connection ( ALGORITHMS_AND_SUCH , & mut conn) . unwrap ( ) ;
5454
5555 let categories = select_slugs ( & mut conn) ;
5656 assert_eq ! ( categories, vec![ "algorithms" , "algorithms::such" ] ) ;
@@ -61,8 +61,8 @@ fn sync_removes_missing_categories() {
6161 let test_db = TestDatabase :: new ( ) ;
6262 let mut conn = test_db. connect ( ) ;
6363
64- :: crates_io :: boot:: categories:: sync_with_connection ( ALGORITHMS_AND_SUCH , & mut conn) . unwrap ( ) ;
65- :: crates_io :: boot:: categories:: sync_with_connection ( ALGORITHMS , & mut conn) . unwrap ( ) ;
64+ crate :: boot:: categories:: sync_with_connection ( ALGORITHMS_AND_SUCH , & mut conn) . unwrap ( ) ;
65+ crate :: boot:: categories:: sync_with_connection ( ALGORITHMS , & mut conn) . unwrap ( ) ;
6666
6767 let categories = select_slugs ( & mut conn) ;
6868 assert_eq ! ( categories, vec![ "algorithms" ] ) ;
@@ -73,8 +73,8 @@ fn sync_adds_and_removes() {
7373 let test_db = TestDatabase :: new ( ) ;
7474 let mut conn = test_db. connect ( ) ;
7575
76- :: crates_io :: boot:: categories:: sync_with_connection ( ALGORITHMS_AND_SUCH , & mut conn) . unwrap ( ) ;
77- :: crates_io :: boot:: categories:: sync_with_connection ( ALGORITHMS_AND_ANOTHER , & mut conn) . unwrap ( ) ;
76+ crate :: boot:: categories:: sync_with_connection ( ALGORITHMS_AND_SUCH , & mut conn) . unwrap ( ) ;
77+ crate :: boot:: categories:: sync_with_connection ( ALGORITHMS_AND_ANOTHER , & mut conn) . unwrap ( ) ;
7878
7979 let categories = select_slugs ( & mut conn) ;
8080 assert_eq ! ( categories, vec![ "algorithms" , "another" ] ) ;
@@ -86,7 +86,7 @@ fn test_real_categories() {
8686 let mut conn = test_db. connect ( ) ;
8787
8888 const TOML : & str = include_str ! ( "../boot/categories.toml" ) ;
89- assert_ok ! ( crates_io :: boot:: categories:: sync_with_connection(
89+ assert_ok ! ( crate :: boot:: categories:: sync_with_connection(
9090 TOML , & mut conn
9191 ) ) ;
9292}
0 commit comments