Skip to content

Commit 65aa0a6

Browse files
committed
Remove redundant clone
1 parent 0c999ed commit 65aa0a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_resolve/build_reduced_graph.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ impl<'a, 'cl> Resolver<'a, 'cl> {
318318
// This particular use tree
319319
&tree, id, &prefix, true,
320320
// The whole `use` item
321-
parent_scope.clone(), item, ty::Visibility::Invisible, root_span,
321+
parent_scope, item, ty::Visibility::Invisible, root_span,
322322
);
323323
}
324324
}

src/libsyntax/ext/tt/macro_parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ fn create_matches(len: usize) -> Box<[Rc<NamedMatchVec>]> {
309309
vec![]
310310
} else {
311311
let empty_matches = Rc::new(SmallVec::new());
312-
vec![empty_matches.clone(); len]
312+
vec![empty_matches; len]
313313
}.into_boxed_slice()
314314
}
315315

0 commit comments

Comments
 (0)