Remove unused make_fqn()
This commit is contained in:
parent
ba00e36884
commit
badff3f3cb
@ -25,8 +25,8 @@ url = "2.2.2"
|
|||||||
flume = "0.10.13"
|
flume = "0.10.13"
|
||||||
tokio = { version = "1.19.2", features = ["full"] }
|
tokio = { version = "1.19.2", features = ["full"] }
|
||||||
futures = "0.3.25"
|
futures = "0.3.25"
|
||||||
heck = "0.4.0"
|
|
||||||
anyhow = "1.0.68"
|
anyhow = "1.0.68"
|
||||||
|
heck = "0.4.0"
|
||||||
|
|
||||||
[dependencies.chrono]
|
[dependencies.chrono]
|
||||||
features = ["serde"]
|
features = ["serde"]
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
use activitystreams::iri_string::percent_encode::PercentEncodedForIri;
|
use activitystreams::iri_string::percent_encode::PercentEncodedForIri;
|
||||||
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;
|
||||||
@ -25,13 +24,6 @@ pub fn iri_percent_encode_seg(segment: &str) -> String {
|
|||||||
PercentEncodedForIri::from_path_segment(segment).to_string()
|
PercentEncodedForIri::from_path_segment(segment).to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn make_fqn(name: &str) -> String {
|
|
||||||
name.to_upper_camel_case()
|
|
||||||
.chars()
|
|
||||||
.filter(|c| c.is_ascii_alphanumeric())
|
|
||||||
.collect()
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
enum State {
|
enum State {
|
||||||
Mention,
|
Mention,
|
||||||
|
Loading…
Reference in New Issue
Block a user