Skip to content

Commit c3d7e2b

Browse files
committed
fixup! new lint: source_item_ordering
1 parent 894bd20 commit c3d7e2b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

clippy_config/src/conf.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ const DEFAULT_MODULE_ITEM_ORDERING_GROUPS: &[(&str, &[SourceItemOrderingModuleIt
5959
("macros", &[Macro]),
6060
("global_asm", &[GlobalAsm]),
6161
("UPPER_SNAKE_CASE", &[Static, Const]),
62-
(
63-
"PascalCase",
64-
&[TyAlias, OpaqueTy, Enum, Struct, Union, Trait, TraitAlias, Impl],
65-
),
62+
("PascalCase", &[
63+
TyAlias, OpaqueTy, Enum, Struct, Union, Trait, TraitAlias, Impl,
64+
]),
6665
("lower_snake_case", &[Fn]),
6766
]
6867
};

clippy_lints/src/arbitrary_source_item_ordering.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
use clippy_config::Conf;
12
use clippy_config::types::{
23
SourceItemOrderingCategory, SourceItemOrderingModuleItemGroupings, SourceItemOrderingModuleItemKind,
34
SourceItemOrderingTraitAssocItemKind, SourceItemOrderingTraitAssocItemKinds,
45
};
5-
use clippy_config::Conf;
66
use clippy_utils::diagnostics::span_lint_and_note;
77
use rustc_hir::{
88
AssocItemKind, FieldDef, HirId, ImplItemRef, IsAuto, Item, ItemKind, Mod, TraitItemRef, UseKind, Variant,
@@ -24,7 +24,7 @@ declare_clippy_lint! {
2424
/// source files are structured, less time will be wasted during reviews on
2525
/// a topic that is (under most circumstances) not relevant to the logic
2626
/// implemented in the code. Sometimes this will be referred to as
27-
/// "bike-shedding".
27+
/// "bikeshedding".
2828
///
2929
/// Keep in mind, that ordering source code alphabetically can lead to
3030
/// reduced performance in cases where the most commonly used enum variant

0 commit comments

Comments
 (0)