Use 2018-style paths in code generated by proc-macro derives

This commit is contained in:
Simon Sapin 2018-11-01 23:43:08 +01:00
parent acabd50f03
commit 86f148fb97
3 changed files with 13 additions and 13 deletions

View file

@ -47,7 +47,7 @@ pub fn dom_struct(args: TokenStream, input: TokenStream) -> TokenStream {
quote! (
#s2
impl ::dom::bindings::inheritance::HasParent for #name {
impl crate::dom::bindings::inheritance::HasParent for #name {
type Parent = #ty;
/// This is used in a type assertion to ensure that
/// the source and webidls agree as to what the parent type is