tafia / quick-protobuf

A rust implementation of protobuf parser
MIT License
446 stars 82 forks source link

Fix update mod.rs for 'package a.b.c' case #178

Closed lexxvir closed 3 years ago

lexxvir commented 3 years ago

Hi @tafia !

I have encounter problem when use triple nested package such as

syntax = "proto2";

package a.b.c;

message ...

Root mod.rs file does not contain pub mod a; string. If I use package a.b; all OK.

This PR works OK for both cases. If you wish I may add a test for 'a.b.c' case.

tafia commented 3 years ago

Thanks!