From 88b1ac077d523bb224a71d4528f35aace0178b14 Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Mon, 4 Mar 2019 10:22:38 +0100 Subject: [PATCH] Rename root_extends --- generator/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generator/src/lib.rs b/generator/src/lib.rs index 30e3048..0b82cd5 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -1626,7 +1626,7 @@ pub fn derive_setters( let extends_name = name_to_tokens(&format!("Extends{}", name)); - let root_extends: Vec = _struct + let root_extensions: Vec = _struct .extends .as_ref() .map(|extends| { @@ -1639,7 +1639,7 @@ pub fn derive_setters( .unwrap_or(vec![]); // We only implement a next methods for root create infos - let next_function = if has_next && root_extends.is_empty() { + let next_function = if has_next && root_extensions.is_empty() { quote! { /// Prepends the given extension struct between the root and the first pointer. This /// method only exists on create infos that can be passed to a function directly. Only @@ -1671,7 +1671,7 @@ pub fn derive_setters( }; // If the struct extends something we need to implement the root create info trait. - let impl_extend_trait = root_extends.iter().map(|extends| { + let impl_extend_trait = root_extensions.iter().map(|extends| { quote! { unsafe impl #extends for #name_builder<'_> { }