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:
@@ -247,7 +247,7 @@ mod tests {
|
||||
macro_rules! toc {
|
||||
($(($level: expr, $name: expr, $(($sub: tt))* )),*) => {
|
||||
Toc {
|
||||
entries: vec!(
|
||||
entries: vec![
|
||||
$(
|
||||
TocEntry {
|
||||
level: $level,
|
||||
@@ -257,7 +257,7 @@ mod tests {
|
||||
children: toc!($($sub),*)
|
||||
}
|
||||
),*
|
||||
)
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user