Add Hash implementation for &str

main
trivernis 2 years ago
parent ac0aba2dda
commit 2ba28aa914
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -3,7 +3,7 @@ members = [".", "derive"]
[package]
name = "rusty-value"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/Trivernis/rusty-value"

@ -101,6 +101,12 @@ impl HashableRustyValue for String {
}
}
impl<'a> HashableRustyValue for &'a str {
fn into_hashable_rusty_value(self) -> HashableValue {
self.to_string().into_hashable_rusty_value()
}
}
impl HashableRustyValue for bool {
#[inline]
fn into_hashable_rusty_value(self) -> HashableValue {

Loading…
Cancel
Save