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 @@ -240,7 +240,7 @@ where
240
240
241
241
/// Call the `Tracer`'s `trace_handle` method on every `Handle` in the tree builder's
242
242
/// internal state. This is intended to support garbage-collected DOMs.
243
- pub fn trace_handles ( & self , tracer : & Tracer < Handle = Handle > ) {
243
+ pub fn trace_handles ( & self , tracer : & dyn Tracer < Handle = Handle > ) {
244
244
tracer. trace_handle ( & self . doc_handle ) ;
245
245
for e in self . open_elems . iter ( ) {
246
246
tracer. trace_handle ( & e) ;
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ fn make_xml_test(
180
180
) {
181
181
let get_field = |key| {
182
182
let field = fields. get ( key) . expect ( "missing field" ) ;
183
- field. trim_right_matches ( '\n' ) . to_string ( )
183
+ field. trim_end_matches ( '\n' ) . to_string ( )
184
184
} ;
185
185
186
186
let data = get_field ( "data" ) ;
@@ -249,7 +249,7 @@ fn run() {
249
249
if let Ok ( f) = fs:: File :: open ( & src_dir. join ( "data/test/ignore" ) ) {
250
250
let r = io:: BufReader :: new ( f) ;
251
251
for ln in r. lines ( ) {
252
- ignores. insert ( ln. unwrap ( ) . trim_right ( ) . to_string ( ) ) ;
252
+ ignores. insert ( ln. unwrap ( ) . trim_end ( ) . to_string ( ) ) ;
253
253
}
254
254
}
255
255
You can’t perform that action at this time.
0 commit comments