Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Wasm-specific Rayon workarounds #3490

Merged
merged 1 commit into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/ruff_cli/src/commands/add_noqa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use ruff::resolver::PyprojectDiscovery;
use ruff::{packaging, resolver, warn_user_once};

use crate::args::Overrides;
use crate::iterators::par_iter;

/// Add `noqa` directives to a collection of files.
pub fn add_noqa(
Expand Down Expand Up @@ -42,7 +41,8 @@ pub fn add_noqa(
);

let start = Instant::now();
let modifications: usize = par_iter(&paths)
let modifications: usize = paths
.par_iter()
.flatten()
.filter_map(|entry| {
let path = entry.path();
Expand Down
4 changes: 2 additions & 2 deletions crates/ruff_cli/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use ruff_diagnostics::Diagnostic;
use crate::args::Overrides;
use crate::cache;
use crate::diagnostics::{lint_path, Diagnostics};
use crate::iterators::par_iter;

/// Run the linter over a collection of files.
pub fn run(
Expand Down Expand Up @@ -76,7 +75,8 @@ pub fn run(
);

let start = Instant::now();
let mut diagnostics: Diagnostics = par_iter(&paths)
let mut diagnostics: Diagnostics = paths
.par_iter()
.map(|entry| {
match entry {
Ok(entry) => {
Expand Down
16 changes: 0 additions & 16 deletions crates/ruff_cli/src/iterators.rs

This file was deleted.

1 change: 0 additions & 1 deletion crates/ruff_cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub mod args;
mod cache;
mod commands;
mod diagnostics;
mod iterators;
mod printer;
mod resolve;

Expand Down