Skip to content

Commit

Permalink
Cargo fmt --all
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Dec 22, 2017
1 parent c1606c6 commit 8fb8cc3
Show file tree
Hide file tree
Showing 65 changed files with 5,767 additions and 3,889 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 14 additions & 12 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ use std::process::Command;
struct Ignore;

impl<E> From<E> for Ignore
where E: Error
where
E: Error,
{
fn from(_: E) -> Ignore {
Ignore
Expand All @@ -35,18 +36,19 @@ fn commit_info() -> String {
}

fn commit_hash() -> Result<String, Ignore> {
Ok(try!(String::from_utf8(try!(Command::new("git")
.args(&["rev-parse", "--short=9", "HEAD"])
.output())
.stdout)))
Ok(String::from_utf8(
Command::new("git")
.args(&["rev-parse", "--short=9", "HEAD"])
.output()?
.stdout,
)?)
}

fn commit_date() -> Result<String, Ignore> {
Ok(try!(String::from_utf8(try!(Command::new("git")
.args(&["log",
"-1",
"--date=short",
"--pretty=format:%cd"])
.output())
.stdout)))
Ok(String::from_utf8(
Command::new("git")
.args(&["log", "-1", "--date=short", "--pretty=format:%cd"])
.output()?
.stdout,
)?)
}
2 changes: 0 additions & 2 deletions src/download/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


error_chain! {
links { }

Expand Down
Loading

0 comments on commit 8fb8cc3

Please sign in to comment.