Skip to content

chore: add group_imports format rule#1637

Merged
Benoît Cortier (CBenoit) merged 2 commits into
Devolutions:masterfrom
allan2:group-imports-1
Dec 18, 2025
Merged

chore: add group_imports format rule#1637
Benoît Cortier (CBenoit) merged 2 commits into
Devolutions:masterfrom
allan2:group-imports-1

Conversation

@allan2
Copy link
Copy Markdown
Contributor

This uses group_imports, which is present in IronRDP, sspi-rs, and IronVNC.

cargo +nightly fmt was run afterwards.

Comment on lines +7 to +10
use bytes::{Buf as _, BufMut as _};
// We re-export these types, because they are used in the public API.
pub use bytes::{Bytes, BytesMut};
use smol_str::SmolStr;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: I don’t really like the mixed pub use and use like that. We use #[rustfmt::skip] in IronRDP. I wonder if there is an option for that today?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no option for that as of yet, only this comment.

rust-lang/rustfmt#5083 (comment)

@CBenoit Benoît Cortier (CBenoit) merged commit fb90650 into Devolutions:master Dec 18, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants