Skip to content

Improve iterator for files suppression #395

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

In build_system/test.rs we currently have:

        for path in files
            .iter()
            .enumerate()
            .filter(|(pos, _)| *pos < start || *pos >= end)
            .map(|(_, path)| path)
        {
            remove_file(&rust_path.join(path))?;
        }

It would probably be simpler to use skip and take.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions