Skip to content

chore: update deprecated merge_imports && fmt#327

Merged
estk merged 1 commit intoestk:mainfrom
SteveLauC:fmt_merge
Dec 6, 2023
Merged

chore: update deprecated merge_imports && fmt#327
estk merged 1 commit intoestk:mainfrom
SteveLauC:fmt_merge

Conversation

@SteveLauC
Copy link
Contributor

What does this PR do

  1. merge_imports is deprecated now, update it to imports_granularity.
  2. Format code

@gauntl3t12
Copy link
Contributor

Reference: rust-lang/rustfmt#3362 for context. Change looks good to me. The fmt output looks no different to me

cargo fmt -- --check
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.

@gauntl3t12
Copy link
Contributor

gauntl3t12 commented Dec 5, 2023

I'll fix the above warning in my CI branch.

@SteveLauC
Copy link
Contributor Author

Yeah, this feature needs a nightly toolchain

@estk
Copy link
Owner

estk commented Dec 6, 2023

🎉

@estk estk enabled auto-merge (squash) December 6, 2023 01:47
@estk estk merged commit 1bdb7e7 into estk:main Dec 6, 2023
@SteveLauC SteveLauC deleted the fmt_merge branch December 6, 2023 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants