Skip to content

remove duplicate imports #372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/docbuilder/chroot_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ impl DocBuilder {
/// Remove documentation, build directory and sources directory of a package
fn clean(&self, package: &Package) -> Result<()> {
debug!("Cleaning package");
use std::fs::remove_dir_all;
let documentation_path = PathBuf::from(&self.options.destination)
.join(package.manifest().name().as_str());
let source_path = source_path(&package).unwrap();
Expand Down
2 changes: 0 additions & 2 deletions src/web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,6 @@ fn opensearch_xml_handler(_: &mut Request) -> IronResult<Response> {
}

fn ico_handler(req: &mut Request) -> IronResult<Response> {
use iron::Url;

if let Some(&"favicon.ico") = req.url.path().last() {
// if we're looking for exactly "favicon.ico", we need to defer to the handler that loads
// from `public_html`, so return a 404 here to make the main handler carry on
Expand Down
2 changes: 0 additions & 2 deletions src/web/releases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ pub fn search_handler(req: &mut Request) -> IronResult<Response> {

let mut resp = Response::with((status::Found, Redirect(url)));
use iron::headers::{Expires, HttpDate};
use time;
resp.headers.set(Expires(HttpDate(time::now())));
return Ok(resp);
}
Expand Down Expand Up @@ -515,7 +514,6 @@ pub fn search_handler(req: &mut Request) -> IronResult<Response> {
let mut resp = Response::with((status::Found, Redirect(url)));

use iron::headers::{Expires, HttpDate};
use time;
resp.headers.set(Expires(HttpDate(time::now())));
return Ok(resp);
}
Expand Down