File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ impl<'r> Scanner<'r> {
461
461
pub fn set_module_output (
462
462
& mut self ,
463
463
data : Box < dyn MessageDyn > ,
464
- ) -> Result < ( ) , ScanError > {
464
+ ) -> Result < & mut Self , ScanError > {
465
465
let descriptor = data. descriptor_dyn ( ) ;
466
466
let full_name = descriptor. full_name ( ) ;
467
467
@@ -481,7 +481,7 @@ impl<'r> Scanner<'r> {
481
481
. user_provided_module_outputs
482
482
. insert ( full_name. to_string ( ) , data) ;
483
483
484
- Ok ( ( ) )
484
+ Ok ( self )
485
485
}
486
486
487
487
/// Similar to [`Scanner::set_module_output`], but receives a module name
@@ -494,7 +494,7 @@ impl<'r> Scanner<'r> {
494
494
& mut self ,
495
495
name : & str ,
496
496
data : & [ u8 ] ,
497
- ) -> Result < ( ) , ScanError > {
497
+ ) -> Result < & mut Self , ScanError > {
498
498
// Try to find the module by name first, if not found, then try
499
499
// to find a module where the fully-qualified name for its protobuf
500
500
// message matches the `name` arguments.
You can’t perform that action at this time.
0 commit comments