From 677e238c6df5b958fa8a405b6d75390484373276 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Fri, 7 Jan 2022 06:12:15 +0900 Subject: [PATCH] Follow API change of heck --- plume-common/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plume-common/src/utils.rs b/plume-common/src/utils.rs index 4f55a53a..cae6504d 100644 --- a/plume-common/src/utils.rs +++ b/plume-common/src/utils.rs @@ -1,4 +1,4 @@ -use heck::CamelCase; +use heck::ToUpperCamelCase; use openssl::rand::rand_bytes; use pulldown_cmark::{html, CodeBlockKind, CowStr, Event, LinkType, Options, Parser, Tag}; use regex_syntax::is_word_character; @@ -21,7 +21,7 @@ pub fn random_hex() -> String { /// Remove non alphanumeric characters and CamelCase a string pub fn make_actor_id(name: &str) -> String { - name.to_camel_case() + name.to_upper_camel_case() .chars() .filter(|c| c.is_alphanumeric()) .collect()