Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ matrix:
install:
script:
- cargo check --tests --all-features
- env: CLIPPY_VERSION="0.0.209"
rust: nightly-2018-06-19
- env: CLIPPY
rust: nightly-2018-07-17
install:
- travis_wait cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
- rustup component add clippy-preview
script:
- cargo clippy --all-features -- -D clippy

Expand Down
6 changes: 3 additions & 3 deletions src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub fn main_binary_path() -> Result<path::PathBuf, CargoError> {
let cargo = escargot::Cargo::new().build().current_release();
let bins: Vec<_> = cargo
.exec()
.map_err(|e| CargoError::with_cause(e))?
.map_err(CargoError::with_cause)?
.filter_map(|m| extract_filenames(&m, "bin"))
.collect();
if bins.is_empty() {
Expand All @@ -150,7 +150,7 @@ pub fn cargo_bin_path<S: AsRef<ffi::OsStr>>(name: S) -> Result<path::PathBuf, Ca
let cargo = escargot::Cargo::new().build().bin(name).current_release();
let bins: Vec<_> = cargo
.exec()
.map_err(|e| CargoError::with_cause(e))?
.map_err(CargoError::with_cause)?
.filter_map(|m| extract_filenames(&m, "bin"))
.collect();
assert_eq!(bins.len(), 1);
Expand All @@ -165,7 +165,7 @@ pub fn cargo_example_path<S: AsRef<ffi::OsStr>>(name: S) -> Result<path::PathBuf
.current_release();
let bins: Vec<_> = cargo
.exec()
.map_err(|e| CargoError::with_cause(e))?
.map_err(CargoError::with_cause)?
.filter_map(|m| extract_filenames(&m, "example"))
.collect();
assert_eq!(bins.len(), 1);
Expand Down
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Error for OutputError {
}

fn cause(&self) -> Option<&Error> {
if let &OutputCause::Unexpected(ref err) = &self.cause {
if let OutputCause::Unexpected(ref err) = self.cause {
Some(err.as_ref())
} else {
None
Expand Down