Skip to content

Commit b77069b

Browse files
committed
fix formatting
it's been bugging me
1 parent b87723f commit b77069b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/web/rustdoc.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ pub fn rustdoc_html_server_handler(req: &mut Request) -> IronResult<Response> {
229229
// expects a req_path that looks like `/rustdoc/:crate/:version[/:target]/.*`
230230
let crate_details = cexpect!(CrateDetails::new(&conn, &name, &version));
231231
if req_path[3] == crate_details.metadata.default_target {
232-
let path = [base, req_path[1..3].join("/"), req_path[4..].join("/")].join("/");
232+
let path = [
233+
base,
234+
req_path[1..3].join("/"),
235+
req_path[4..].join("/")
236+
].join("/");
233237
let canonical = Url::parse(&path).expect("got an invalid URL to start");
234238
return Ok(super::redirect(canonical));
235239
}

0 commit comments

Comments
 (0)