mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 12:50:04 -04:00
Style: forbid .zip and .chain (#8188)
The `zip(a, b)` variant produces clearer code imho. Downside: added dependency on `itertools`
This commit is contained in:
@@ -365,7 +365,7 @@ impl WebPainter for WebPainterWgpu {
|
||||
// Submit the commands: both the main buffer and user-defined ones.
|
||||
render_state
|
||||
.queue
|
||||
.submit(user_cmd_bufs.into_iter().chain([encoder.finish()]));
|
||||
.submit(std::iter::chain(user_cmd_bufs, [encoder.finish()]));
|
||||
|
||||
if let Some((frame, capture_buffer)) = frame_and_capture_buffer {
|
||||
if let Some(capture_buffer) = capture_buffer
|
||||
|
||||
Reference in New Issue
Block a user