Closed
Description
Recently, I enabled a rustfmt rule:
imports_granularity = "Module"
After I re-fmt, the code failed to be compiled. And thus I found an unexpected rustfmt behaviour:
before fmt:
use risingwave_pb::data::DataType;
use risingwave_pb::data::DataType as DataTypeProst;
after fmt:
use risingwave_pb::data::DataType as DataTypeProst;
But the codes that use "DataType" are not changed.
I don't think that rustfmt should turn the correct code into incorrect in any condition.