File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -423,19 +423,17 @@ pub fn search(query: &str,
423
423
}
424
424
None => name
425
425
} ;
426
- writeln ! ( config . shell ( ) . err ( ) , "{}" , line) ? ;
426
+ println ! ( "{}" , line) ;
427
427
}
428
428
429
429
let search_max_limit = 100 ;
430
430
if total_crates > limit as u32 && limit < search_max_limit {
431
- writeln ! ( config. shell( ) . err( ) ,
432
- "... and {} crates more (use --limit N to see more)" ,
433
- total_crates - limit as u32 ) ?;
431
+ println ! ( "... and {} crates more (use --limit N to see more)" ,
432
+ total_crates - limit as u32 ) ;
434
433
} else if total_crates > limit as u32 && limit >= search_max_limit {
435
- writeln ! ( config. shell( ) . err( ) ,
436
- "... and {} crates more (go to http://crates.io/search?q={} to see more)" ,
434
+ println ! ( "... and {} crates more (go to http://crates.io/search?q={} to see more)" ,
437
435
total_crates - limit as u32 ,
438
- percent_encode( query. as_bytes( ) , QUERY_ENCODE_SET ) ) ? ;
436
+ percent_encode( query. as_bytes( ) , QUERY_ENCODE_SET ) ) ;
439
437
}
440
438
441
439
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ fn simple() {
84
84
assert_that ( cargo_process ( "search" ) . arg ( "postgres" )
85
85
. arg ( "--host" ) . arg ( registry ( ) . to_string ( ) ) ,
86
86
execs ( ) . with_status ( 0 )
87
- . with_stderr_contains ( "\
87
+ . with_stdout_contains ( "\
88
88
hoare = \" 0.1.1\" # Design by contract style assertions for Rust") ) ;
89
89
}
90
90
@@ -134,7 +134,7 @@ fn multiple_query_params() {
134
134
assert_that ( cargo_process ( "search" ) . arg ( "postgres" ) . arg ( "sql" )
135
135
. arg ( "--host" ) . arg ( registry ( ) . to_string ( ) ) ,
136
136
execs ( ) . with_status ( 0 )
137
- . with_stderr_contains ( "\
137
+ . with_stdout_contains ( "\
138
138
hoare = \" 0.1.1\" # Design by contract style assertions for Rust") ) ;
139
139
}
140
140
You can’t perform that action at this time.
0 commit comments