refactor(gstd): align gstd reexports & prelude items with std#3047
Conversation
The line should not be removed for the whole repo because we have requirement to merge imports. It was done manually via PR author or reviewer request before. For now I can offer to apply Also, as @grishasobol said, I'm not sure we actually need to follow line by line as in |
|
At first, I thought it'd be more convenient to maintain it this way if new modules would be added in @ark0f, glob imports create ambiguity because there are a lot of modules with the same name from |
In
gstd'spreludemodule, the following is stated:gear/gstd/src/prelude.rs
Lines 19 to 20 in fdb21be
That's not entirely true. Several modules and types, which can be found in
std'spreludemodule, are missing ingstd's one. So, in this PR, I refactored thepreludemodule to makegstdalign tostdas much as possible.The only problem here is that I'd like to leave reexports in this format for easier alignment maintaining with
std, butrustfmtis configured to mergeusestatements. For now, I removedimports_granularity = "Crate"fromrustfmt.toml, but the final solution needs to be discussed.