Follow API change of heck
This commit is contained in:
parent
b0bc2372fa
commit
677e238c6d
@ -1,4 +1,4 @@
|
|||||||
use heck::CamelCase;
|
use heck::ToUpperCamelCase;
|
||||||
use openssl::rand::rand_bytes;
|
use openssl::rand::rand_bytes;
|
||||||
use pulldown_cmark::{html, CodeBlockKind, CowStr, Event, LinkType, Options, Parser, Tag};
|
use pulldown_cmark::{html, CodeBlockKind, CowStr, Event, LinkType, Options, Parser, Tag};
|
||||||
use regex_syntax::is_word_character;
|
use regex_syntax::is_word_character;
|
||||||
@ -21,7 +21,7 @@ pub fn random_hex() -> String {
|
|||||||
|
|
||||||
/// Remove non alphanumeric characters and CamelCase a string
|
/// Remove non alphanumeric characters and CamelCase a string
|
||||||
pub fn make_actor_id(name: &str) -> String {
|
pub fn make_actor_id(name: &str) -> String {
|
||||||
name.to_camel_case()
|
name.to_upper_camel_case()
|
||||||
.chars()
|
.chars()
|
||||||
.filter(|c| c.is_alphanumeric())
|
.filter(|c| c.is_alphanumeric())
|
||||||
.collect()
|
.collect()
|
||||||
|
Loading…
Reference in New Issue
Block a user