I find the derived code assuming that the trait DataSize is already imported into the current scope. This is not a big deal but when I'm going to derive DataSize in generated protobuf code (with prost), I find no way to include the statement use datasize::DataSize;, especially for the nested modules.
So I guess the best way to resolve this issue is to use qualified path everywhere in the derived code.
Hi and thanks for your work!
I find the derived code assuming that the trait
DataSize
is already imported into the current scope. This is not a big deal but when I'm going to deriveDataSize
in generated protobuf code (withprost
), I find no way to include the statementuse datasize::DataSize;
, especially for the nested modules.So I guess the best way to resolve this issue is to use qualified path everywhere in the derived code.