From d2fc9cb0af4fecd54539f8106473bc1f168a56b4 Mon Sep 17 00:00:00 2001 From: alexion Date: Sat, 19 Sep 2026 10:30:53 -0400 Subject: [PATCH] style(rust): drop declaration ordering rule --- src/skills/style/rust/rules/declarations.md | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/skills/style/rust/rules/declarations.md diff --git a/src/skills/style/rust/rules/declarations.md b/src/skills/style/rust/rules/declarations.md deleted file mode 100644 index acf9279..0000000 --- a/src/skills/style/rust/rules/declarations.md +++ /dev/null @@ -1,14 +0,0 @@ -# Declaration rules - -## Order declarations by use - -### Rule - -Order related Rust declarations from the type that uses other local types to those local dependencies. -For a type with multiple local field dependencies, place dependencies in field order. -Apply the rule depth-first before moving to the next dependency. - -### Rationale - -Use-first order lets readers start with the public or owning shape. -They can then read supporting types in the order the owner references them.