Skip to content

Commit 17cbbf0

Browse files
ZenithsizThomas Bahn
authored and
Thomas Bahn
committed
Added missing #[must_use] to AsciiString::new now that it is a const fn.
1 parent 24d5104 commit 17cbbf0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ascii_string.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ impl AsciiString {
2626
/// let mut s = AsciiString::new();
2727
/// ```
2828
#[inline]
29+
#[must_use]
2930
pub const fn new() -> Self {
3031
AsciiString { vec: Vec::new() }
3132
}

0 commit comments

Comments
 (0)