From: Ian Jackson Date: Wed, 11 May 2022 23:02:31 +0000 (+0100) Subject: ambassador: impl_via_ambassador: Put back the type name X-Git-Tag: otter-1.1.0~225 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=392d1b9916382f7b938bee651237b179ee0f3750;p=otter.git ambassador: impl_via_ambassador: Put back the type name IDK what ambassador's body_struct etc. macros might use this for in the future. Keeping to the pattern that was in response to my MR seems wisest ? Signed-off-by: Ian Jackson --- diff --git a/src/utils.rs b/src/utils.rs index 40d3031b..f9b969c7 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -782,7 +782,7 @@ macro_rules! impl_via_ambassador{ } => { paste!{ $( #[ $attr ] )* impl $Trait for $Type { - [< ambassador_impl_ $Trait >]!{ body_struct( <>, _, + [< ambassador_impl_ $Trait >]!{ body_struct( <>, dyn $Trait, (), ($($how_immut)*), ()