diff --git a/progenitor-impl/src/method.rs b/progenitor-impl/src/method.rs index 2c2a731b..949955f2 100644 --- a/progenitor-impl/src/method.rs +++ b/progenitor-impl/src/method.rs @@ -1131,7 +1131,7 @@ impl Generator { let pre_hook = self.settings.pre_hook.as_ref().map(|hook| { quote! { - (#hook)(&#client.inner, &#request_ident); + (#hook)(&#client.inner, &mut #request_ident); } }); let pre_hook_async = self.settings.pre_hook_async.as_ref().map(|hook| {