core: use assoc types in Deref[Mut]
This commit is contained in:
parent
d555772554
commit
64b7c22c46
49 changed files with 256 additions and 107 deletions
|
@ -606,7 +606,9 @@ impl InternedString {
|
|||
}
|
||||
}
|
||||
|
||||
impl Deref<str> for InternedString {
|
||||
impl Deref for InternedString {
|
||||
type Target = str;
|
||||
|
||||
fn deref(&self) -> &str { &*self.string }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue