avoid full-slicing slices
If we already have a slice, there is no need to get another full-range slice from that, just use the original. clippy::redundant_slicing
This commit is contained in:
parent
d1206f950f
commit
4390a61b64
19 changed files with 33 additions and 40 deletions
|
@ -709,7 +709,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||
let (tup, args) = args.split_last().unwrap();
|
||||
(args, Some(tup))
|
||||
} else {
|
||||
(&args[..], None)
|
||||
(args, None)
|
||||
};
|
||||
|
||||
'make_args: for (i, arg) in first_args.iter().enumerate() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue