Add lifetime to push_next
This commit is contained in:
parent
3de2ca9a22
commit
c66ae6b77e
1 changed files with 1 additions and 1 deletions
|
@ -1595,7 +1595,7 @@ pub fn derive_setters(
|
|||
let next_function = if has_next && next_extends.is_none() {
|
||||
quote! {
|
||||
/// Prepend
|
||||
pub fn push_next<T: #extends_name>(mut self, next: &mut T) -> #name_builder<'a> {
|
||||
pub fn push_next<T: #extends_name>(mut self, next: &'a mut T) -> #name_builder<'a> {
|
||||
unsafe{
|
||||
let next_ptr = next.as_ptr_mut();
|
||||
(*next_ptr).p_next = self.inner.p_next as _;
|
||||
|
|
Loading…
Add table
Reference in a new issue