about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-27 16:02:53 +0000
committerbors <bors@rust-lang.org>2023-11-27 16:02:53 +0000
commit9aa867cd0111c2907720a05762071d3b4f2d4815 (patch)
treecd5e60d28b47d0eb5d53aa69e51d5f882dc777a3 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent23dc01f95821a2fe78e151b6c51f33187919ebed (diff)
parente790d7ff3a268834bf186b1d4efe0e4e912ce961 (diff)
downloadrust-9aa867cd0111c2907720a05762071d3b4f2d4815.tar.gz
rust-9aa867cd0111c2907720a05762071d3b4f2d4815.zip
Auto merge of #15946 - roife:master, r=Veykril
internal: simplify the removal of dulicate workspaces.

### Summary:
Refactoring the duplicate removal process for `workspaces` in `fetch_workspaces`.

### Changes Made:

Replaced `[].iter().enumerate().skip(...).filter_map(...)` with a more concise `[i+1..].positions(...)` provided by `itertools`, which enhances clarity without changing functionality

### Impact:

This change aims to enhance the duplicate removal process for `workspaces`. This change has been tested on my machine.

Please review and provide feedback. Thanks!
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions