Use more autoderef in libsyntax
This commit is contained in:
parent
db6e5d5ef9
commit
c877d61b15
10 changed files with 171 additions and 171 deletions
|
@ -666,7 +666,7 @@ impl InternedString {
|
|||
impl Deref for InternedString {
|
||||
type Target = str;
|
||||
|
||||
fn deref(&self) -> &str { &*self.string }
|
||||
fn deref(&self) -> &str { &self.string }
|
||||
}
|
||||
|
||||
impl fmt::Debug for InternedString {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue