mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-23 18:40:34 +00:00
Follow API change of heck
This commit is contained in:
parent
b0bc2372fa
commit
677e238c6d
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue