fix clippy warnings; update crate versions

This commit is contained in:
vms 2021-05-21 21:15:02 +03:00
parent 908f74ec5b
commit aa1da858ad
5 changed files with 8 additions and 8 deletions

8
Cargo.lock generated
View File

@ -1465,7 +1465,7 @@ dependencies = [
"clap", "clap",
"exitfailure", "exitfailure",
"marine-it-generator 0.5.2", "marine-it-generator 0.5.2",
"marine-it-parser 0.6.1", "marine-it-parser 0.6.2",
"marine-module-info-parser 0.1.0", "marine-module-info-parser 0.1.0",
"semver 0.11.0", "semver 0.11.0",
"serde", "serde",
@ -1499,7 +1499,7 @@ version = "0.5.2"
dependencies = [ dependencies = [
"cargo_toml", "cargo_toml",
"it-lilo", "it-lilo",
"marine-it-parser 0.6.1", "marine-it-parser 0.6.2",
"marine-macro-impl", "marine-macro-impl",
"once_cell", "once_cell",
"serde", "serde",
@ -1546,7 +1546,7 @@ dependencies = [
[[package]] [[package]]
name = "marine-it-parser" name = "marine-it-parser"
version = "0.6.1" version = "0.6.2"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"itertools 0.10.0", "itertools 0.10.0",
@ -1641,7 +1641,7 @@ dependencies = [
"log", "log",
"marine-it-generator 0.5.2", "marine-it-generator 0.5.2",
"marine-it-interfaces 0.4.0", "marine-it-interfaces 0.4.0",
"marine-it-parser 0.6.1", "marine-it-parser 0.6.2",
"marine-module-info-parser 0.1.0", "marine-module-info-parser 0.1.0",
"marine-module-interface", "marine-module-interface",
"marine-utils 0.2.0", "marine-utils 0.2.0",

View File

@ -1,7 +1,7 @@
[package] [package]
name = "marine-it-parser" name = "marine-it-parser"
description = "Fluence Marine interface types parser" description = "Fluence Marine interface types parser"
version = "0.6.1" version = "0.6.2"
authors = ["Fluence Labs"] authors = ["Fluence Labs"]
license = "Apache-2.0" license = "Apache-2.0"
edition = "2018" edition = "2018"

View File

@ -37,8 +37,8 @@ pub fn get_interface(mit: &MITInterfaces<'_>) -> RIResult<IModuleInterface> {
} = get_record_types(mit, function_signatures.iter())?; } = get_record_types(mit, function_signatures.iter())?;
let mm_interface = IModuleInterface { let mm_interface = IModuleInterface {
record_types,
export_record_types, export_record_types,
record_types,
function_signatures, function_signatures,
}; };

View File

@ -13,7 +13,7 @@ path = "src/main.rs"
[dependencies] [dependencies]
marine-it-generator = { path = "../../crates/it-generator", version = "0.5.1" } marine-it-generator = { path = "../../crates/it-generator", version = "0.5.1" }
marine-it-parser = { path = "../../crates/it-parser", version = "0.6.1" } marine-it-parser = { path = "../../crates/it-parser", version = "0.6.2" }
marine-module-info-parser = { path = "../../crates/module-info-parser", version = "0.1.0" } marine-module-info-parser = { path = "../../crates/module-info-parser", version = "0.1.0" }
semver = "0.11.0" semver = "0.11.0"

View File

@ -94,7 +94,7 @@ fn aqua(args: &clap::ArgMatches<'_>) -> Result<(), anyhow::Error> {
None => { None => {
let service_name = wasm_path let service_name = wasm_path
.file_stem() .file_stem()
.ok_or(anyhow::Error::msg("provided path isn't a path to a file"))?; .ok_or_else(|| anyhow::Error::msg("provided path isn't a path to a file"))?;
service_name.to_string_lossy() service_name.to_string_lossy()
} }