File tree Expand file tree Collapse file tree 3 files changed +0
-5
lines changed Expand file tree Collapse file tree 3 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,6 @@ impl DocBuilder {
244
244
/// Remove documentation, build directory and sources directory of a package
245
245
fn clean ( & self , package : & Package ) -> Result < ( ) > {
246
246
debug ! ( "Cleaning package" ) ;
247
- use std:: fs:: remove_dir_all;
248
247
let documentation_path = PathBuf :: from ( & self . options . destination )
249
248
. join ( package. manifest ( ) . name ( ) . as_str ( ) ) ;
250
249
let source_path = source_path ( & package) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -504,8 +504,6 @@ fn opensearch_xml_handler(_: &mut Request) -> IronResult<Response> {
504
504
}
505
505
506
506
fn ico_handler ( req : & mut Request ) -> IronResult < Response > {
507
- use iron:: Url ;
508
-
509
507
if let Some ( & "favicon.ico" ) = req. url . path ( ) . last ( ) {
510
508
// if we're looking for exactly "favicon.ico", we need to defer to the handler that loads
511
509
// from `public_html`, so return a 404 here to make the main handler carry on
Original file line number Diff line number Diff line change @@ -476,7 +476,6 @@ pub fn search_handler(req: &mut Request) -> IronResult<Response> {
476
476
477
477
let mut resp = Response :: with ( ( status:: Found , Redirect ( url) ) ) ;
478
478
use iron:: headers:: { Expires , HttpDate } ;
479
- use time;
480
479
resp. headers . set ( Expires ( HttpDate ( time:: now ( ) ) ) ) ;
481
480
return Ok ( resp) ;
482
481
}
@@ -515,7 +514,6 @@ pub fn search_handler(req: &mut Request) -> IronResult<Response> {
515
514
let mut resp = Response :: with ( ( status:: Found , Redirect ( url) ) ) ;
516
515
517
516
use iron:: headers:: { Expires , HttpDate } ;
518
- use time;
519
517
resp. headers . set ( Expires ( HttpDate ( time:: now ( ) ) ) ) ;
520
518
return Ok ( resp) ;
521
519
}
You can’t perform that action at this time.
0 commit comments