Skip to content

Commit 47f4ee0

Browse files
committed
cargo fmt
1 parent 5cc57ba commit 47f4ee0

File tree

5 files changed

+313
-407
lines changed

5 files changed

+313
-407
lines changed

.rustfmt.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

build.rs

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,38 +33,21 @@ fn commit_info() -> String {
3333
}
3434

3535
fn commit_hash() -> Result<String, IgnoredError> {
36-
Ok(
36+
Ok(try!(String::from_utf8(
3737
try!(
38-
String::from_utf8(
39-
try!(
40-
Command::new("git")
41-
.args(&["rev-parse", "--short", "HEAD"])
42-
.output()
43-
)
44-
.stdout,
45-
)
46-
),
47-
)
38+
Command::new("git")
39+
.args(&["rev-parse", "--short", "HEAD"])
40+
.output()
41+
).stdout,
42+
)))
4843
}
4944

5045
fn commit_date() -> Result<String, IgnoredError> {
51-
Ok(
46+
Ok(try!(String::from_utf8(
5247
try!(
53-
String::from_utf8(
54-
try!(
55-
Command::new("git")
56-
.args(
57-
&[
58-
"log",
59-
"-1",
60-
"--date=short",
61-
"--pretty=format:%cd",
62-
],
63-
)
64-
.output()
65-
)
66-
.stdout,
67-
)
68-
),
69-
)
48+
Command::new("git")
49+
.args(&["log", "-1", "--date=short", "--pretty=format:%cd"])
50+
.output()
51+
).stdout,
52+
)))
7053
}

0 commit comments

Comments
 (0)