Skip to content

Commit 555982a

Browse files
committed
docs(ai): correct instructions
1 parent 7a800c1 commit 555982a

4 files changed

Lines changed: 4 additions & 12 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Read and follow the CONTRIBUTING.md file in this repository for all code style c
66

77
- Commit format: Conventional Commits — `type(scope): lowercase description`
88
- Version releases are the only exception: just the version number (e.g. `0.21.1`)
9-
- Import order: internal (`crate::`/`super::`) → external crates → `std::`, prefer merged imports
9+
- Prefer merged imports
1010
- Use descriptive generic names (`Size`, `Report`), not single letters
1111
- Prefer `where` clauses for multiple trait bounds
1212
- Derive order: std traits → comparison traits → `Hash` → derive_more → feature-gated

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Read and follow the CONTRIBUTING.md file in this repository for all code style c
66

77
- Commit format: Conventional Commits — `type(scope): lowercase description`
88
- Version releases are the only exception: just the version number (e.g. `0.21.1`)
9-
- Import order: internal (`crate::`/`super::`) → external crates → `std::`, prefer merged imports
9+
- Prefer merged imports
1010
- Use descriptive generic names (`Size`, `Report`), not single letters
1111
- Prefer `where` clauses for multiple trait bounds
1212
- Derive order: std traits → comparison traits → `Hash` → derive_more → feature-gated

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Read and follow the CONTRIBUTING.md file in this repository for all code style c
66

77
- Commit format: Conventional Commits — `type(scope): lowercase description`
88
- Version releases are the only exception: just the version number (e.g. `0.21.1`)
9-
- Import order: internal (`crate::`/`super::`) → external crates → `std::`, prefer merged imports
9+
- Prefer merged imports
1010
- Use descriptive generic names (`Size`, `Report`), not single letters
1111
- Prefer `where` clauses for multiple trait bounds
1212
- Derive order: std traits → comparison traits → `Hash` → derive_more → feature-gated

CONTRIBUTING.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,7 @@ Automated tools enforce formatting (`cargo fmt`) and linting (`cargo clippy`). T
3232

3333
### Import Organization
3434

35-
Prefer **merged imports** — combine multiple items from the same crate or module into a single `use` statement with braces rather than separate `use` lines.
36-
37-
Imports are grouped in this order, separated by blank lines:
38-
39-
1. `use super::...` or `use crate::...` (internal)
40-
2. External crate imports (alphabetical)
41-
3. `use std::...` (standard library)
42-
43-
Within each group, items are ordered alphabetically. Platform-specific imports (`#[cfg(unix)]`) go in a separate block after the main imports.
35+
Prefer **merged imports** — combine multiple items from the same crate or module into a single `use` statement with braces rather than separate `use` lines. Import ordering is enforced by `cargo fmt`. Platform-specific imports (`#[cfg(unix)]`) go in a separate block after the main imports.
4436

4537
```rust
4638
use crate::{

0 commit comments

Comments
 (0)