Fix warns

This commit is contained in:
Shunsuke Shibayama 2022-09-23 11:59:31 +09:00
parent a79f0652ab
commit 5366bfadc4
3 changed files with 6 additions and 8 deletions

View file

@ -36,7 +36,7 @@ impl Add<&str> for AtomicStr {
impl Hash for AtomicStr {
fn hash<H: Hasher>(&self, state: &mut H) {
match self {
AtomicStr::Arc(s) => (&s[..]).hash(state),
AtomicStr::Arc(s) => s[..].hash(state),
AtomicStr::Static(s) => (*s).hash(state),
}
}