Skip to content

Commit

Permalink
Formatting changes, update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rutrum committed Jan 11, 2025
1 parent 524c6f8 commit 2b5b965
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 34 deletions.
77 changes: 48 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ panic = 'abort'
random = ["rand"]

[dependencies]
rand = { version = "^0.7", optional = true }
rand = { version = "^0.8", optional = true }
unicode-segmentation = "1.9.0"

[dev-dependencies]
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ This is list of cases that convert\_case supports. Some cases are simply aliase
Breaking changes:

* Rename `Case::ScreamingSnake` to `Case::Constant`.
* Add `Case::Sentence` (sentence pattern and space delimiter)
* `Casing` trait implemented for `Arc<str>` and `Rc<str>` again
* Add `Case::Sentence` (sentence pattern and space delimiter.)
* `Casing` trait implemented for `Arc<str>` and `Rc<str>` again.

Other changes:

* Remove most imports from doc comments.
* Remove loop over `str::chars` in favor of `graphemes` from `unicode-segmentation`.

## Other Projects

Expand Down
2 changes: 1 addition & 1 deletion src/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::iter;
#[cfg(feature = "random")]
use rand::prelude::*;

use unicode_segmentation::UnicodeSegmentation; //, GraphemeCursor};
use unicode_segmentation::UnicodeSegmentation;

#[derive(Debug, Eq, PartialEq, Clone, Copy)]
enum WordCase {
Expand Down
2 changes: 1 addition & 1 deletion src/segmentation.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[cfg(test)]
use strum::EnumIter;

use unicode_segmentation::UnicodeSegmentation; //, GraphemeCursor};
use unicode_segmentation::UnicodeSegmentation;

/// A boundary defines how a string is split into words. Some boundaries, `Hyphen`, `Underscore`,
/// and `Space`, consume the character they split on, whereas the other boundaries
Expand Down

0 comments on commit 2b5b965

Please sign in to comment.