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 @@ -464,7 +464,7 @@ impl PullParser {
464
464
self . read_prefix_separator = false ;
465
465
}
466
466
467
- let invoke_callback = |this : & mut PullParser , t| {
467
+ let invoke_callback = move |this : & mut PullParser , t| {
468
468
let name = this. take_buf ( ) ;
469
469
match name. parse ( ) {
470
470
Ok ( name) => on_name ( this, t, name) ,
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ impl Emitter {
253
253
self . before_markup ( target) ?;
254
254
255
255
let result = {
256
- let mut write = || {
256
+ let mut write = move || {
257
257
write ! ( target, "<?{name}" ) ?;
258
258
259
259
if let Some ( data) = data {
@@ -415,7 +415,7 @@ impl Emitter {
415
415
// TODO: add escaping dashes at the end of the comment
416
416
417
417
let autopad_comments = self . config . autopad_comments ;
418
- let write = |target : & mut W | -> Result < ( ) > {
418
+ let write = move |target : & mut W | -> Result < ( ) > {
419
419
target. write_all ( b"<!--" ) ?;
420
420
421
421
if autopad_comments && !content. starts_with ( char:: is_whitespace) {
You can’t perform that action at this time.
0 commit comments