cli: Improve converting non-conflicting paths to names in IDL (#2588)
This commit is contained in:
parent
be8764b8a8
commit
2af9cc669b
|
@ -2458,7 +2458,7 @@ fn generate_idl_build(no_docs: bool) -> Result<Vec<Idl>> {
|
|||
let replaced_idl = modified_idl.replace(path, &format!(r#""{name}""#));
|
||||
|
||||
// Check whether there is a conflict
|
||||
let has_conflict = replaced_idl.contains(&format!("::{name}"));
|
||||
let has_conflict = replaced_idl.contains(&format!(r#"::{name}""#));
|
||||
if !has_conflict {
|
||||
modified_idl = replaced_idl;
|
||||
}
|
||||
|
|
|
@ -309,7 +309,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"name": "idl::State",
|
||||
"name": "State",
|
||||
"docs": [
|
||||
"An account containing various fields"
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue