Skip to content

Commit 3ea926b

Browse files
committed
Add copilot instruction about ::
1 parent ba3d95a commit 3ea926b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ judgement to produce the clearest code organization.
2222

2323
Keep the main logic as unnested as possible. Favour Rust's `let ... else`
2424
syntax to return early or continue a loop in the `else` clause, over `if let`.
25+
26+
Always prefer importing with `use` instead of qualifying with `::`, unless specifically requested in these instructions or by the user, or you see existing `::` usages in the file you're editing.

0 commit comments

Comments
 (0)