Make CanGc derive Copy and Clone (#33407)

Signed-off-by: Taym <haddadi.taym@gmail.com>
This commit is contained in:
Taym Haddadi 2024-09-12 12:24:44 +02:00 committed by GitHub
parent 637770600f
commit 747e562ff0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 61 additions and 72 deletions

View file

@ -250,11 +250,11 @@ impl ServiceWorkerManager {
None
}
fn handle_message(&mut self, _can_gc: CanGc) {
fn handle_message(&mut self, can_gc: CanGc) {
while let Ok(message) = self.receive_message() {
let should_continue = match message {
Message::FromConstellation(msg) => {
self.handle_message_from_constellation(msg, CanGc::note())
self.handle_message_from_constellation(msg, can_gc)
},
Message::FromResource(msg) => self.handle_message_from_resource(msg),
};