Skip to content

Commit

Permalink
ci: update nightly to 2018-06-19, clippy to 0.0.209
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed Jun 20, 2018
1 parent 0a9547b commit cb5cb1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ matrix:
script:
- rustfmt -V
- cargo fmt -- --write-mode diff
- rust: nightly-2018-02-14
- rust: nightly-2018-06-19
before_script:
- cargo install clippy --vers 0.0.186
- cargo install clippy --vers 0.0.209
script:
- cargo clippy -- -D warnings
- cargo clippy -- -D warnings -A renamed_and_removed_lints -A print_literal
allow_failures:
- rust: nightly
before_script:
Expand Down
12 changes: 6 additions & 6 deletions src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fn merge_dependencies(old_dep: &mut toml_edit::Item, new: &Dependency) {
unreachable!("Invalid old dependency type");
}

old_dep.as_inline_table_mut().map(|t| t.fmt());
if let Some(t) = old_dep.as_inline_table_mut() { t.fmt() }
}

/// Print a message if the new dependency version is different from the old one.
Expand Down Expand Up @@ -121,9 +121,9 @@ fn print_upgrade_if_necessary(
buffer
.set_color(&ColorSpec::new())
.chain_err(|| "Failed to clear output colour")?;
write!(
writeln!(
&mut buffer,
"{} v{} -> v{}\n",
"{} v{} -> v{}",
crate_name, old_version, new_version,
).chain_err(|| "Failed to write upgrade versions")?;
bufwtr
Expand Down Expand Up @@ -254,7 +254,7 @@ impl Manifest {
} else {
// update an existing entry
merge_dependencies(&mut table[&dep.name], dep);
table.as_inline_table_mut().map(|t| t.fmt());
if let Some(t) = table.as_inline_table_mut() { t.fmt() }
}
Ok(())
}
Expand All @@ -276,7 +276,7 @@ impl Manifest {
}
if !dry_run {
merge_dependencies(&mut table[&dep.name], dep);
table.as_inline_table_mut().map(|t| t.fmt());
if let Some(t) = table.as_inline_table_mut() { t.fmt() }
}
}

Expand Down Expand Up @@ -374,7 +374,7 @@ impl LocalManifest {
let path = path.to_path_buf();
Ok(LocalManifest {
manifest: Manifest::open(&Some(path.clone()))?,
path: path,
path,
})
}

Expand Down

0 comments on commit cb5cb1b

Please sign in to comment.