Skip to content

Commit

Permalink
Remove dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
reknih committed Sep 28, 2023
1 parent cdecebe commit 4b7f37e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ cli = ["clap"]
[dependencies]
biblatex = { version = "0.8", optional = true }
clap = { version = "3.1", optional = true, features = ["cargo"] }
chrono = { version = "0.4", default-features = false }
isolang = "2.1"
lazy_static = "1.4.0"
linked-hash-map = "0.5.3"
paste = "1.0.0"
regex = { version = "1.4", default-features = false, features = ["std", "unicode-perl"] }
strum = { version = "0.24", features = ["derive"] }
thiserror = "1.0.20"
unic-langid = "0.9.0"
Expand Down
12 changes: 0 additions & 12 deletions src/types/strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,11 @@ impl FormatStr {
}

/// Format this formattable string in title case.
///
/// This uses an override defined through [`title_case`](Self::title_case)
/// if present, or falls back to the given title case formatter otherwise.
pub fn format_title_case(&self, props: TitleCaseConf) -> String {
self.value.format_title_case(props)
}

/// Format this formattable string in sentence case.
///
/// This uses an override defined through [`sentence_case`](Self::sentence_case)
/// if present, or falls back to the given sentence case formatter otherwise.
pub fn format_sentence_case(&self, props: SentenceCaseConf) -> String {
self.value.format_sentence_case(props)
}
Expand Down Expand Up @@ -216,19 +210,13 @@ impl ChunkedStr {
}

/// Format this formattable string in title case.
///
/// This uses an override defined through [`title_case`](Self::title_case)
/// if present, or falls back to the given title case formatter otherwise.
pub fn format_title_case(&self, props: TitleCaseConf) -> String {
let mut c = CaseFolder::from_config(props.into());
self.fold_case(&mut c);
c.finish()
}

/// Format this formattable string in sentence case.
///
/// This uses an override defined through [`sentence_case`](Self::sentence_case)
/// if present, or falls back to the given sentence case formatter otherwise.
pub fn format_sentence_case(&self, props: SentenceCaseConf) -> String {
let mut c = CaseFolder::from_config(props.into());
self.fold_case(&mut c);
Expand Down

0 comments on commit 4b7f37e

Please sign in to comment.