fix: more flexible ResourceType MainArgSignature parser

This commit is contained in:
Ruben Fiszel
2022-06-14 02:23:29 +02:00
parent 7739c4beaa
commit 359ef15fa2
+2 -2
View File
@@ -251,8 +251,8 @@ fn binding_ident_to_arg(
type_params,
}) => {
println!("N{sym:?}\nP{type_params:?}");
match sym.to_string().as_str() {
"ResourceType" => Typ::ResourceType(
match sym.to_string().as_str().split(".").last() {
Some("ResourceType") => Typ::ResourceType(
type_params
.as_ref()
.and_then(|x| {