update dependencies
update itertools from 0.7 to 0.8 update env_logger from 0.5 to 0.6 update cargo_metadata from 0.6 to 0.7 update bytecount from 0.4 to 0.5
This commit is contained in:
parent
d2e91b5b68
commit
d44ee75438
3 changed files with 29 additions and 24 deletions
|
|
@ -378,7 +378,12 @@ fn run_rustfmt(
|
|||
}
|
||||
|
||||
fn get_cargo_metadata(manifest_path: Option<&Path>) -> Result<cargo_metadata::Metadata, io::Error> {
|
||||
match cargo_metadata::metadata(manifest_path) {
|
||||
let mut cmd = cargo_metadata::MetadataCommand::new();
|
||||
cmd.no_deps();
|
||||
if let Some(manifest_path) = manifest_path {
|
||||
cmd.manifest_path(manifest_path);
|
||||
}
|
||||
match cmd.exec() {
|
||||
Ok(metadata) => Ok(metadata),
|
||||
Err(error) => Err(io::Error::new(io::ErrorKind::Other, error.to_string())),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue