about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2021-01-20 14:30:50 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2021-01-20 14:30:50 +0300
commit724059569b4c775ee4723640e0eaabe0da7cdeaf (patch)
treef770da961fcdc3e17d8c8e622cbc4e34c5ef91e2 /docs/dev
parent3429b32ad119756985e1a7bfa5e9e53042671f8b (diff)
downloadrust-724059569b4c775ee4723640e0eaabe0da7cdeaf.tar.gz
rust-724059569b4c775ee4723640e0eaabe0da7cdeaf.zip
Don't show runnable suggestions for other files
It't be actually great to have these once we have run anything dialog,
but for run the thing at point it makes sense to show a limited set.
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/style.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/dev/style.md b/docs/dev/style.md
index 21330948ba5..aed15cee932 100644
--- a/docs/dev/style.md
+++ b/docs/dev/style.md
@@ -280,6 +280,9 @@ Prefer `Default` even it has to be implemented manually.
 
 **Rationale:** less typing in the common case, uniformity.
 
+Use `Vec::new` rather than `vec![]`. **Rationale:** uniformity, strength
+reduction.
+
 ## Functions Over Objects
 
 Avoid creating "doer" objects.