Changed most vec! invocations to use square braces
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
This commit is contained in:
parent
f26eedb571
commit
e593c3b893
189 changed files with 511 additions and 511 deletions
|
@ -1260,7 +1260,7 @@ impl Context {
|
|||
item.name = Some(krate.name);
|
||||
|
||||
// render the crate documentation
|
||||
let mut work = vec!((self, item));
|
||||
let mut work = vec![(self, item)];
|
||||
|
||||
while let Some((mut cx, item)) = work.pop() {
|
||||
cx.item(item, |cx, item| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue