mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
fix a typo
This commit is contained in:
parent
cdb1b41b26
commit
20b1766d23
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -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",
|
||||
|
@ -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()?))
|
||||
|
Loading…
Reference in New Issue
Block a user