diff --git a/Cargo.lock b/Cargo.lock index 08914ed..f7f5cd9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -240,7 +240,7 @@ checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" [[package]] name = "cainome" -version = "0.1.0" +version = "0.1.4" dependencies = [ "cainome-cairo-serde", "cainome-parser", diff --git a/Cargo.toml b/Cargo.toml index 055b8a8..0e62281 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cainome" -version = "0.1.0" +version = "0.1.4" edition = "2021" [workspace] diff --git a/crates/parser/src/tokens/composite.rs b/crates/parser/src/tokens/composite.rs index bbed11c..37aa665 100644 --- a/crates/parser/src/tokens/composite.rs +++ b/crates/parser/src/tokens/composite.rs @@ -89,7 +89,7 @@ impl Composite { } pub fn apply_alias(&mut self, type_path: &str, alias: &str) { - if self.type_path.starts_with(type_path) { + if self.type_path_no_generic() == type_path { self.alias = Some(alias.to_string()); }