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

Commit 7d83fdf

Browse files
committed
Add todo comment for lint-filtering HashSet
1 parent 400ae0e commit 7d83fdf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cargo-fix/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ fn cargo_fix_rustc() -> Result<(), Error> {
105105
}
106106

107107
fn rustfix_crate(rustc: &Path, filename: &str) -> Result<(), Error> {
108+
// If not empty, filter by these lints
109+
//
110+
// TODO: Implement a way to specify this
111+
let only = HashSet::new();
112+
108113
// First up we want to make sure that each crate is only checked by one
109114
// process at a time. If two invocations concurrently check a crate then
110115
// it's likely to corrupt it.
@@ -125,7 +130,6 @@ fn rustfix_crate(rustc: &Path, filename: &str) -> Result<(), Error> {
125130
// there are compiler errors.
126131
let stderr = str::from_utf8(&output.stderr)
127132
.map_err(|_| format_err!("failed to parse rustc stderr as utf-8"))?;
128-
let only = HashSet::new();
129133
let suggestions = stderr.lines()
130134
.filter(|x| !x.is_empty())
131135

0 commit comments

Comments
 (0)