Skip to content

Commit 6e03f38

Browse files
authored
Merge pull request #1390 from cyplo/rustfmt
rustfmt'ed
2 parents e95bc96 + c0d9b9b commit 6e03f38

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+5690
-3480
lines changed

build.rs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ use std::process::Command;
88
struct Ignore;
99

1010
impl<E> From<E> for Ignore
11-
where E: Error
11+
where
12+
E: Error,
1213
{
1314
fn from(_: E) -> Ignore {
1415
Ignore
@@ -35,18 +36,21 @@ fn commit_info() -> String {
3536
}
3637

3738
fn commit_hash() -> Result<String, Ignore> {
38-
Ok(try!(String::from_utf8(try!(Command::new("git")
39-
.args(&["rev-parse", "--short=9", "HEAD"])
40-
.output())
41-
.stdout)))
39+
Ok(try!(String::from_utf8(
40+
try!(
41+
Command::new("git")
42+
.args(&["rev-parse", "--short=9", "HEAD"])
43+
.output()
44+
).stdout
45+
)))
4246
}
4347

4448
fn commit_date() -> Result<String, Ignore> {
45-
Ok(try!(String::from_utf8(try!(Command::new("git")
46-
.args(&["log",
47-
"-1",
48-
"--date=short",
49-
"--pretty=format:%cd"])
50-
.output())
51-
.stdout)))
49+
Ok(try!(String::from_utf8(
50+
try!(
51+
Command::new("git")
52+
.args(&["log", "-1", "--date=short", "--pretty=format:%cd"])
53+
.output()
54+
).stdout
55+
)))
5256
}

src/download/src/errors.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
error_chain! {
42
links { }
53

0 commit comments

Comments
 (0)