Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Sep 6, 2023
1 parent 2d0bfda commit aea6640
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/candid/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "candid"
version = "0.9.5"
version = "0.9.6"
edition = "2021"
authors = ["DFINITY Team"]
description = "Candid is an interface description language (IDL) for interacting with canisters running on the Internet Computer."
Expand Down
2 changes: 1 addition & 1 deletion rust/candid/src/bindings/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn ident_(id: &str, case: Option<Case>) -> (RcDoc, bool) {
|| id.starts_with(|c: char| !c.is_ascii_alphabetic() && c != '_')
|| id.chars().any(|c| !c.is_ascii_alphanumeric() && c != '_')
{
return (RcDoc::text(format!("_{}_", crate::idl_hash(&id))), true);
return (RcDoc::text(format!("_{}_", crate::idl_hash(id))), true);
}
let (is_rename, id) = if let Some(case) = case {
let new_id = id.to_case(case);
Expand Down

0 comments on commit aea6640

Please sign in to comment.