Replies: 1 comment 1 reply
-
There isn't an option for that kind of import formatting. The best you can do right now is use crate::{
api::{API_METHOD_COLLECTOR, ApiMethod},
util::Function,
};
use proc_macro2::{Ident, Span, TokenStream};
use quote::{ToTokens, quote};
use std::sync::PoisonError;
use syn::parse::Parse; |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I recently found the
imports_granularity
setting in RustFMT.Since using RustRover, my preferred import style is as though I ran RustFMT over my code twice, the first being of granularity
Item
, the second isCrate
.It would take my code from
to
I like this style because my IDE will automatically collapse them and I can see quickly which crates I'm using and expand them if I need to know more.
Is there a way to achieve this with RustFMT?
Beta Was this translation helpful? Give feedback.
All reactions