fix: nested module bug

This commit is contained in:
Shunsuke Shibayama 2024-01-31 12:11:20 +09:00
parent 20b1993714
commit a6e7a39753
8 changed files with 62 additions and 28 deletions

View file

@ -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 {