fix clippy warning in components/script (#33878)

Signed-off-by: lwz23 <wenzhaoliao@ruc.edu.cn>
This commit is contained in:
lwz23 2024-10-17 08:58:28 -04:00 committed by GitHub
parent cd7b66be58
commit 595aab10dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 6 deletions

View file

@ -2157,7 +2157,7 @@ impl Document {
task_source,
canceller: Some(canceller),
}
.to_callback();
.into_callback();
self.loader_mut()
.fetch_async_with_callback(load, request, callback);
}
@ -2177,7 +2177,7 @@ impl Document {
task_source,
canceller: Some(canceller),
}
.to_callback();
.into_callback();
self.loader_mut()
.fetch_async_background(request, callback, cancel_override);
}