Skip to content

Commit

Permalink
Use full name of Box for generated into_any fn.
Browse files Browse the repository at this point in the history
This will avoid conflict if protocol file also defined a message named Box.

Signed-off-by: bin liu <bin@hyper.sh>
  • Loading branch information
liubin authored and stepancheg committed Jun 28, 2020
1 parent 3f5ee79 commit c5ae4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protobuf-codegen/src/message.rs
Expand Up @@ -369,7 +369,7 @@ impl<'a> MessageGen<'a> {
w.write_line("self as &mut dyn (::std::any::Any)");
});
w.def_fn(
"into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>",
"into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>",
|w| {
w.write_line("self");
},
Expand Down

0 comments on commit c5ae4e8

Please sign in to comment.