mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
fix: nested module bug
This commit is contained in:
parent
20b1993714
commit
a6e7a39753
8 changed files with 62 additions and 28 deletions
|
@ -46,6 +46,13 @@ impl PartialEq<str> for Str {
|
|||
}
|
||||
}
|
||||
|
||||
impl PartialEq<&str> for Str {
|
||||
#[inline]
|
||||
fn eq(&self, other: &&str) -> bool {
|
||||
self[..] == other[..]
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq<String> for Str {
|
||||
#[inline]
|
||||
fn eq(&self, other: &String) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue