Skip to content

Commit 19f9c95

Browse files
committed
Implement Hash
1 parent 4f1bbe9 commit 19f9c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/c_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use core::{
1212
/// A fixed capacity [`CString`](https://doc.rust-lang.org/std/ffi/struct.CString.html).
1313
///
1414
/// It stores up to `N - 1` non-nul characters with a trailing nul terminator.
15-
#[derive(Clone, Default)]
15+
#[derive(Clone, Default, Hash)]
1616
pub struct CString<const N: usize> {
1717
inner: Vec<u8, N>,
1818
}

0 commit comments

Comments
 (0)