miniscule: fix edition fmt (#5167)

* miniscule: fix edition fmt

* fix: rust analyzer might enable this and hence cause red squiggles

Reduce the visual overload.

* fix/spellcheck/quirk: allow 124_123 numbers
This commit is contained in:
Bernhard Schuster authored and GitHub committed 2022-03-21 13:00:59 +00:00
1 parent 189dfdc006
commit 0e34a8080f
3 files changed
+20 -5

No files matched your search

+4 -1
View File
@@ -67,7 +67,10 @@ pub(crate) fn gum(item: proc_macro::TokenStream, level: Level) -> proc_macro::To
let res = expander::Expander::new("gum")
.add_comment("Generated overseer code by `gum::warn!(..)`".to_owned())
.dry(!cfg!(feature = "expand"))
// `dry=true` until rust-analyzer can selectively disable features so it's
// not all red squiggles. Originally: `!cfg!(feature = "expand")`
// ISSUE: <https://github.com/rust-analyzer/rust-analyzer/issues/11777>
.dry(true)
.verbose(false)
.fmt(expander::Edition::_2021)
.maybe_write_to_out_dir(impl_gum2(item, level))