Use workspace definitions for all crates and update to the 2021 edition (#32544)

This commit is contained in:
Martin Robinson 2024-06-18 11:22:08 +02:00 committed by GitHub
parent 42b09d483f
commit 4a7f3bac7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 283 additions and 268 deletions

View file

@ -1,10 +1,10 @@
[package]
name = "jstraceable_derive"
version = "0.0.1"
authors = ["The Servo Project Developers"]
license = "MPL-2.0"
edition = "2018"
publish = false
edition.workspace = true
version.workspace = true
authors.workspace = true
license.workspace = true
publish.workspace = true
[lib]
path = "lib.rs"

View file

@ -157,7 +157,7 @@ fn js_traceable_derive(s: synstructure::Structure) -> proc_macro2::TokenStream {
}
return None;
} else if attr.path().is_ident("custom_trace") {
return Some(quote!(<crate::dom::bindings::trace::CustomTraceable>::trace(#binding, tracer);));
return Some(quote!(<dyn crate::dom::bindings::trace::CustomTraceable>::trace(#binding, tracer);));
}
}
Some(quote!(#binding.trace(tracer);))