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

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