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
240240
241241 /// Call the `Tracer`'s `trace_handle` method on every `Handle` in the tree builder's
242242 /// 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 > ) {
244244 tracer. trace_handle ( & self . doc_handle ) ;
245245 for e in self . open_elems . iter ( ) {
246246 tracer. trace_handle ( & e) ;
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ fn make_xml_test(
180180) {
181181 let get_field = |key| {
182182 let field = fields. get ( key) . expect ( "missing field" ) ;
183- field. trim_right_matches ( '\n' ) . to_string ( )
183+ field. trim_end_matches ( '\n' ) . to_string ( )
184184 } ;
185185
186186 let data = get_field ( "data" ) ;
@@ -249,7 +249,7 @@ fn run() {
249249 if let Ok ( f) = fs:: File :: open ( & src_dir. join ( "data/test/ignore" ) ) {
250250 let r = io:: BufReader :: new ( f) ;
251251 for ln in r. lines ( ) {
252- ignores. insert ( ln. unwrap ( ) . trim_right ( ) . to_string ( ) ) ;
252+ ignores. insert ( ln. unwrap ( ) . trim_end ( ) . to_string ( ) ) ;
253253 }
254254 }
255255
You can’t perform that action at this time.
0 commit comments