Skip to content

Commit 0555d31

Browse files
committed
chore(lib): add display
1 parent c15ab2b commit 0555d31

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "case_insensitive_string"
3-
version = "0.2.5"
4-
authors = ["Jeff Mendez <jeff@a11ywatch.com>"]
3+
version = "0.2.6"
4+
authors = ["Jeff Mendez <jeff@spider.cloud>"]
55
edition = "2021"
66
description = "A case insensitive string struct."
77
license = "MIT"
88
readme = "README.md"
9-
repository = "https://github.com/a11ywatch/case_insensitive_string"
9+
repository = "https://github.com/spider-rs/case_insensitive_string"
1010
keywords = ["case-insensitive", "string"]
1111
categories = ["config", "data-structures"]
1212
include = ["src/*", "LICENSE", "README.md"]

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ impl AsRef<str> for CaseInsensitiveString {
7070
}
7171
}
7272

73+
impl core::fmt::Display for CaseInsensitiveString {
74+
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
75+
write!(f, "{}", self.0)
76+
}
77+
}
78+
7379
impl CaseInsensitiveString {
7480
/// Creates a `CaseInsensitiveString` slice from any byte slice.
7581
///

0 commit comments

Comments
 (0)