File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl Set {
5656 let mut ptr: Option < & mut Box < Entry > > = self . buckets [ bucket_index] . as_mut ( ) ;
5757
5858 while let Some ( entry) = ptr. take ( ) {
59- if entry. hash == hash && & * entry. string == & * string {
59+ if entry. hash == hash && * entry. string == * string {
6060 if entry. ref_count . fetch_add ( 1 , SeqCst ) > 0 {
6161 return NonNull :: from ( & mut * * entry) ;
6262 }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl<Static: StaticAtomSet> PartialEq<Atom<Static>> for str {
3939
4040impl < Static : StaticAtomSet > PartialEq < String > for Atom < Static > {
4141 fn eq ( & self , other : & String ) -> bool {
42- & self [ ..] == & other[ ..]
42+ self [ ..] == other[ ..]
4343 }
4444}
4545
@@ -66,7 +66,7 @@ impl<Static: StaticAtomSet> fmt::Display for Atom<Static> {
6666
6767impl < Static : StaticAtomSet > AsRef < str > for Atom < Static > {
6868 fn as_ref ( & self ) -> & str {
69- & self
69+ self
7070 }
7171}
7272
You can’t perform that action at this time.
0 commit comments