Skip to content

Commit da910f9

Browse files
committed
chore(struct): add default
1 parent d95f123 commit da910f9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "case_insensitive_string"
3-
version = "0.1.6"
3+
version = "0.1.7"
44
authors = ["Jeff Mendez <jeff@a11ywatch.com>"]
55
edition = "2021"
66
description = "A case insensitive string struct."

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ pub mod features;
88

99
/// case-insensitive string handling
1010
#[cfg(not(feature = "compact"))]
11-
#[derive(Debug, Clone)]
11+
#[derive(Debug, Clone, Default)]
1212
#[repr(transparent)]
1313
pub struct CaseInsensitiveString(String);
1414

1515
/// case-insensitive string handling
1616
#[cfg(feature = "compact")]
17-
#[derive(Debug, Clone)]
17+
#[derive(Debug, Clone, Default)]
1818
#[repr(transparent)]
1919
pub struct CaseInsensitiveString(compact_str::CompactString);
2020

0 commit comments

Comments
 (0)