diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-02-16 19:21:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-16 19:21:20 +0100 |
| commit | 46b93b2e44405a3d914eb07dfe33bc39226bfe71 (patch) | |
| tree | dade0bdd8dac8da7b5b7079e0a5f848732f602c7 /src/bootstrap | |
| parent | cdab137bd44a12da1020444fb75efb37fd77f114 (diff) | |
| parent | 4390a61b6495765a04819130e3934ec671428bcd (diff) | |
| download | rust-46b93b2e44405a3d914eb07dfe33bc39226bfe71.tar.gz rust-46b93b2e44405a3d914eb07dfe33bc39226bfe71.zip | |
Rollup merge of #82163 - matthiaskrgr:slice, r=jyn514
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
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/flags.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index 55062e11e02..6044899c237 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -347,7 +347,7 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`", }; // Done specifying what options are possible, so do the getopts parsing - let matches = opts.parse(&args[..]).unwrap_or_else(|e| { + let matches = opts.parse(args).unwrap_or_else(|e| { // Invalid argument/option format println!("\n{}\n", e); usage(1, &opts, false, &subcommand_help); |
