Follow API change of heck

This commit is contained in:
Kitaiti Makoto 2022-01-07 06:12:15 +09:00
parent b0bc2372fa
commit 677e238c6d

View File

@ -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()