Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Filter by machine applicability #97

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Address review feedback
  • Loading branch information
killercup committed May 23, 2018
commit 2eaaa757d2ee57a599cd8b3c7b0be5f18ec313d5
2 changes: 0 additions & 2 deletions cargo-fix/tests/all/edition_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ fn local_paths() {
[FINISHED] dev [unoptimized + debuginfo]
";
p.expect_cmd("cargo-fix fix --prepare-for 2018")
.env("__CARGO_FIX_YOLO", "true")
.stdout("")
.stderr(stderr)
.run();
Expand Down Expand Up @@ -105,7 +104,6 @@ fn local_paths_no_fix() {
[FINISHED] dev [unoptimized + debuginfo]
";
p.expect_cmd("cargo-fix fix --prepare-for 2018")
.env("__CARGO_FIX_YOLO", "true")
.stdout("")
.stderr(stderr)
.run();
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub fn collect_suggestions<S: ::std::hash::BuildHasher>(
match (filter, &span.suggestion_applicability) {
(MachineApplicableOnly, Some(MachineApplicable)) => true,
(MachineApplicableOnly, _) => false,
(_, _) => true,
(Everything, _) => true,
}
})
.filter_map(collect_span)
Expand Down