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 {
244244 /// Remove documentation, build directory and sources directory of a package
245245 fn clean ( & self , package : & Package ) -> Result < ( ) > {
246246 debug ! ( "Cleaning package" ) ;
247- use std:: fs:: remove_dir_all;
248247 let documentation_path = PathBuf :: from ( & self . options . destination )
249248 . join ( package. manifest ( ) . name ( ) . as_str ( ) ) ;
250249 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> {
504504}
505505
506506fn ico_handler ( req : & mut Request ) -> IronResult < Response > {
507- use iron:: Url ;
508-
509507 if let Some ( & "favicon.ico" ) = req. url . path ( ) . last ( ) {
510508 // if we're looking for exactly "favicon.ico", we need to defer to the handler that loads
511509 // 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> {
476476
477477 let mut resp = Response :: with ( ( status:: Found , Redirect ( url) ) ) ;
478478 use iron:: headers:: { Expires , HttpDate } ;
479- use time;
480479 resp. headers . set ( Expires ( HttpDate ( time:: now ( ) ) ) ) ;
481480 return Ok ( resp) ;
482481 }
@@ -515,7 +514,6 @@ pub fn search_handler(req: &mut Request) -> IronResult<Response> {
515514 let mut resp = Response :: with ( ( status:: Found , Redirect ( url) ) ) ;
516515
517516 use iron:: headers:: { Expires , HttpDate } ;
518- use time;
519517 resp. headers . set ( Expires ( HttpDate ( time:: now ( ) ) ) ) ;
520518 return Ok ( resp) ;
521519 }
You can’t perform that action at this time.
0 commit comments