mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 12:51:10 +00:00
Fix warns
This commit is contained in:
parent
a79f0652ab
commit
5366bfadc4
3 changed files with 6 additions and 8 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue