diff options
| author | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-11-28 12:19:22 +0900 |
|---|---|---|
| committer | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-12-04 15:38:40 +0900 |
| commit | 65aa0a6249b7d7afddbd7d5b9cf4c8c68575e334 (patch) | |
| tree | 94489a23d7a8c75b1589f06d49eb972221732a68 /src/libsyntax/ext | |
| parent | 0c999ed132d67bf2520643e9bd619972cf3888ba (diff) | |
| download | rust-65aa0a6249b7d7afddbd7d5b9cf4c8c68575e334.tar.gz rust-65aa0a6249b7d7afddbd7d5b9cf4c8c68575e334.zip | |
Remove redundant clone
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 8fd9590a664..68d94b43dba 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -309,7 +309,7 @@ fn create_matches(len: usize) -> Box<[Rc<NamedMatchVec>]> { vec![] } else { let empty_matches = Rc::new(SmallVec::new()); - vec![empty_matches.clone(); len] + vec![empty_matches; len] }.into_boxed_slice() } |
