Skip to content

Commit c5ae4e8

Browse files
liubinstepancheg
authored andcommitted
Use full name of Box for generated into_any fn.
This will avoid conflict if protocol file also defined a message named Box. Signed-off-by: bin liu <bin@hyper.sh>
1 parent 3f5ee79 commit c5ae4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protobuf-codegen/src/message.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ impl<'a> MessageGen<'a> {
369369
w.write_line("self as &mut dyn (::std::any::Any)");
370370
});
371371
w.def_fn(
372-
"into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>",
372+
"into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>",
373373
|w| {
374374
w.write_line("self");
375375
},

0 commit comments

Comments
 (0)