cli: Improve converting non-conflicting paths to names in IDL (#2588)

This commit is contained in:
acheron 2023-08-02 23:01:05 +02:00 committed by GitHub
parent be8764b8a8
commit 2af9cc669b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -309,7 +309,7 @@
}
},
{
"name": "idl::State",
"name": "State",
"docs": [
"An account containing various fields"
],