@@ -456,7 +456,7 @@ default configuration of Clippy. By default, any configuration will replace the
456
456
* ` doc-valid-idents = ["ClipPy"] ` would replace the default list with ` ["ClipPy"] ` .
457
457
* ` doc-valid-idents = ["ClipPy", ".."] ` would append ` ClipPy ` to the default list.
458
458
459
- ** Default Value:** ` ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "AccessKit", "CoreFoundation", "CoreGraphics", "CoreText", "DevOps", "Direct2D", "Direct3D", "DirectWrite", "DirectX", "ECMAScript", "GPLv2", "GPLv3", "GitHub", "GitLab", "IPv4", "IPv6", "ClojureScript", "CoffeeScript", "JavaScript", "PostScript", "PureScript", "TypeScript", "WebAssembly", "NaN", "NaNs", "OAuth", "GraphQL", "OCaml", "OpenAL", "OpenDNS", "OpenGL", "OpenMP", "OpenSSH", "OpenSSL", "OpenStreetMap", "OpenTelemetry", "OpenType", "WebGL", "WebGL2", "WebGPU", "WebRTC", "WebSocket", "WebTransport", "WebP", "OpenExr", "YCbCr", "sRGB", "TensorFlow", "TrueType", "iOS", "macOS", "FreeBSD", "NetBSD", "OpenBSD", "TeX", "LaTeX", "BibTeX", "BibLaTeX", "MinGW", "CamelCase"] `
459
+ ** Default Value:** ` ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "MHz", "GHz", "THz", " AccessKit", "CoAP ", "CoreFoundation", "CoreGraphics", "CoreText", "DevOps", "Direct2D", "Direct3D", "DirectWrite", "DirectX", "ECMAScript", "GPLv2", "GPLv3", "GitHub", "GitLab", "IPv4", "IPv6", "ClojureScript", "CoffeeScript", "JavaScript", "PostScript", "PureScript", "TypeScript", "WebAssembly", "NaN", "NaNs", "OAuth", "GraphQL", "OCaml", "OpenAL", "OpenDNS", "OpenGL", "OpenMP", "OpenSSH", "OpenSSL", "OpenStreetMap", "OpenTelemetry", "OpenType", "WebGL", "WebGL2", "WebGPU", "WebRTC", "WebSocket", "WebTransport", "WebP", "OpenExr", "YCbCr", "sRGB", "TensorFlow", "TrueType", "iOS", "macOS", "FreeBSD", "NetBSD", "OpenBSD", "TeX", "LaTeX", "BibTeX", "BibLaTeX", "MinGW", "CamelCase"] `
460
460
461
461
---
462
462
** Affected lints:**
@@ -666,6 +666,16 @@ crate. For example, `pub(crate)` items.
666
666
* [ ` missing_docs_in_private_items ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items )
667
667
668
668
669
+ ## ` module-item-order-groupings `
670
+ The named groupings of different source item kinds within modules.
671
+
672
+ ** Default Value:** ` [["modules", ["extern_crate", "mod", "foreign_mod"]], ["use", ["use"]], ["macros", ["macro"]], ["global_asm", ["global_asm"]], ["UPPER_SNAKE_CASE", ["static", "const"]], ["PascalCase", ["ty_alias", "enum", "struct", "union", "trait", "trait_alias", "impl"]], ["lower_snake_case", ["fn"]]] `
673
+
674
+ ---
675
+ ** Affected lints:**
676
+ * [ ` arbitrary_source_item_ordering ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#arbitrary_source_item_ordering )
677
+
678
+
669
679
## ` msrv `
670
680
The minimum rust version that the project supports. Defaults to the ` rust-version ` field in ` Cargo.toml `
671
681
@@ -710,6 +720,7 @@ The minimum rust version that the project supports. Defaults to the `rust-versio
710
720
* [ ` manual_try_fold ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold )
711
721
* [ ` map_clone ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#map_clone )
712
722
* [ ` map_unwrap_or ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or )
723
+ * [ ` map_with_unused_argument_over_ranges ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#map_with_unused_argument_over_ranges )
713
724
* [ ` match_like_matches_macro ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro )
714
725
* [ ` mem_replace_with_default ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default )
715
726
* [ ` missing_const_for_fn ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn )
@@ -783,6 +794,16 @@ The maximum number of single char bindings a scope may have
783
794
* [ ` many_single_char_names ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#many_single_char_names )
784
795
785
796
797
+ ## ` source-item-ordering `
798
+ Which kind of elements should be ordered internally, possible values being ` enum ` , ` impl ` , ` module ` , ` struct ` , ` trait ` .
799
+
800
+ ** Default Value:** ` ["enum", "impl", "module", "struct", "trait"] `
801
+
802
+ ---
803
+ ** Affected lints:**
804
+ * [ ` arbitrary_source_item_ordering ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#arbitrary_source_item_ordering )
805
+
806
+
786
807
## ` stack-size-threshold `
787
808
The maximum allowed stack size for functions in bytes
788
809
@@ -862,6 +883,16 @@ The maximum number of lines a function or method can have
862
883
* [ ` too_many_lines ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines )
863
884
864
885
886
+ ## ` trait-assoc-item-kinds-order `
887
+ The order of associated items in traits.
888
+
889
+ ** Default Value:** ` ["const", "type", "fn"] `
890
+
891
+ ---
892
+ ** Affected lints:**
893
+ * [ ` arbitrary_source_item_ordering ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#arbitrary_source_item_ordering )
894
+
895
+
865
896
## ` trivial-copy-size-limit `
866
897
The maximum size (in bytes) to consider a ` Copy ` type for passing by value instead of by
867
898
reference. By default there is no limit
0 commit comments