You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `InitData` and `PinData` trait does not need to exist, the inference
helpers could be inherent methods instead.
There is no risk for calling the wrong methods even when user defines it,
as inherent methods take priority over trait methods.
With this change, we can use `impl Trait` as the return type of these
methods. Thus, return `impl Init` or `impl PinInit` directly and simplify
the code generation of `init!` and `pin_init!` macro. The method is renamed
to `__make_init` accordingly.
Signed-off-by: Gary Guo <gary@garyguo.net>
0 commit comments