fix a typo

This commit is contained in:
vms 2021-03-15 18:47:40 +03:00
parent cdb1b41b26
commit 20b1766d23
2 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -210,7 +210,7 @@ checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed"
[[package]]
name = "wasmer-interface-types-fl"
version = "0.18.2"
version = "0.18.3"
dependencies = [
"fluence-it-types",
"it-to-bytes",

View File

@ -384,7 +384,7 @@ struct Version(pub String);
impl Parse<'_> for Version {
fn parse(parser: Parser<'_>) -> Result<Self> {
parser.parse::<keyword::version>()?;
parser.parse::<keyword::it_version>()?;
let version = parser.parse()?;
Ok(Version(version))
@ -411,7 +411,7 @@ impl<'a> Parse<'a> for Interface<'a> {
let mut lookahead = parser.lookahead1();
if lookahead.peek::<keyword::version>() {
if lookahead.peek::<keyword::it_version>() {
Ok(Interface::Version(parser.parse()?))
} else if lookahead.peek::<keyword::r#type>() {
Ok(Interface::Type(parser.parse()?))