Skip to content

Commit

Permalink
Have unsafe_no_jsmanaged_fields! macro take a type as argument rather…
Browse files Browse the repository at this point in the history
… than an ident.

We only write unsafe_no_jsmanaged_fields!(SomeType), and the
documentation says it is to be used for types.
  • Loading branch information
jyc committed Jun 27, 2017
1 parent 3f2d747 commit a4cbbee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/macros.rs
Expand Up @@ -303,7 +303,7 @@ macro_rules! make_nonzero_dimension_setter(
/// For use on non-jsmanaged types
/// Use #[derive(JSTraceable)] on JS managed types
macro_rules! unsafe_no_jsmanaged_fields(
($($ty:ident),+) => (
($($ty:ty),+) => (
$(
#[allow(unsafe_code)]
unsafe impl $crate::dom::bindings::trace::JSTraceable for $ty {
Expand Down

0 comments on commit a4cbbee

Please sign in to comment.