File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " rowan"
3
- version = " 0.8.1 "
3
+ version = " 0.8.2 "
4
4
authors = [
" Aleksey Kladov <[email protected] >" ]
5
5
repository = " https://github.com/matklad/rowan"
6
6
license = " MIT OR Apache-2.0"
Original file line number Diff line number Diff line change @@ -154,12 +154,24 @@ impl PartialEq<str> for SyntaxText {
154
154
}
155
155
}
156
156
157
+ impl PartialEq < SyntaxText > for str {
158
+ fn eq ( & self , rhs : & SyntaxText ) -> bool {
159
+ rhs == self
160
+ }
161
+ }
162
+
157
163
impl PartialEq < & ' _ str > for SyntaxText {
158
164
fn eq ( & self , rhs : & & str ) -> bool {
159
165
self == * rhs
160
166
}
161
167
}
162
168
169
+ impl PartialEq < SyntaxText > for & ' _ str {
170
+ fn eq ( & self , rhs : & SyntaxText ) -> bool {
171
+ rhs == self
172
+ }
173
+ }
174
+
163
175
impl PartialEq for SyntaxText {
164
176
fn eq ( & self , other : & SyntaxText ) -> bool {
165
177
if self . range . len ( ) != other. range . len ( ) {
You can’t perform that action at this time.
0 commit comments