summaryrefslogtreecommitdiff
path: root/cli/swc_util.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-06-05 04:23:07 +0200
committerBert Belder <bertbelder@gmail.com>2020-06-05 05:11:15 +0200
commit9a783ae4e6789fc90c8a6d62e846c9abd29e7d2f (patch)
treef29deee9518be75fc4b4d99e4e3c24343de83053 /cli/swc_util.rs
parent7069d60423979858ece856d52ef9567a50f8ef76 (diff)
ci: upgrade to Rust 1.44.0 (#6113)
Diffstat (limited to 'cli/swc_util.rs')
-rw-r--r--cli/swc_util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/swc_util.rs b/cli/swc_util.rs
index 0d1d1ba08..0d75877bf 100644
--- a/cli/swc_util.rs
+++ b/cli/swc_util.rs
@@ -521,7 +521,7 @@ pub fn analyze_dependencies_and_references(
let comments = parser
.comments
.take_leading_comments(module_span.lo())
- .unwrap_or_else(|| vec![]);
+ .unwrap_or_else(Vec::new);
let mut references = vec![];
for comment in comments {