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",
"exitfailure",
"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",
"semver 0.11.0",
"serde",
@ -1499,7 +1499,7 @@ version = "0.5.2"
dependencies = [
"cargo_toml",
"it-lilo",
"marine-it-parser 0.6.1",
"marine-it-parser 0.6.2",
"marine-macro-impl",
"once_cell",
"serde",
@ -1546,7 +1546,7 @@ dependencies = [
[[package]]
name = "marine-it-parser"
version = "0.6.1"
version = "0.6.2"
dependencies = [
"anyhow",
"itertools 0.10.0",
@ -1641,7 +1641,7 @@ dependencies = [
"log",
"marine-it-generator 0.5.2",
"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-interface",
"marine-utils 0.2.0",

View File

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

View File

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

View File

@ -13,7 +13,7 @@ path = "src/main.rs"
[dependencies]
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" }
semver = "0.11.0"

View File

@ -94,7 +94,7 @@ fn aqua(args: &clap::ArgMatches<'_>) -> Result<(), anyhow::Error> {
None => {
let service_name = wasm_path
.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()
}