Skip to content

Commit 2bffbfc

Browse files
committed
lintcheck: avoid dbg!() calls
1 parent e1c284b commit 2bffbfc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

clippy_dev/src/lintcheck.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,15 @@ impl Crate {
165165
.current_dir(&self.path)
166166
.output()
167167
.unwrap_or_else(|error| {
168-
dbg!(error);
169-
dbg!(&cargo_clippy_path);
170-
dbg!(&self.path);
171-
panic!("something was not found?")
168+
panic!(
169+
"Encountered error:\n{:?}\ncargo_clippy_path: {}\ncrate path:{}\n",
170+
error,
171+
&cargo_clippy_path.display(),
172+
&self.path.display()
173+
);
172174
});
173175
let stdout = String::from_utf8_lossy(&all_output.stdout);
174176
let output_lines = stdout.lines();
175-
//dbg!(&output_lines);
176177
let warnings: Vec<ClippyWarning> = output_lines
177178
.into_iter()
178179
// get all clippy warnings
@@ -229,7 +230,7 @@ fn read_crates() -> Vec<CrateSource> {
229230
if tk.versions.is_some() && (tk.git_url.is_some() || tk.git_hash.is_some())
230231
|| tk.git_hash.is_some() != tk.git_url.is_some()
231232
{
232-
dbg!(&tk);
233+
eprintln!("tomlkrate: {:?}", tk);
233234
if tk.git_hash.is_some() != tk.git_url.is_some() {
234235
panic!("Encountered TomlCrate with only one of git_hash and git_url!")
235236
}

0 commit comments

Comments
 (0)