We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7314133 commit dbb8c00Copy full SHA for dbb8c00
clippy_dev/src/crater.rs
@@ -98,6 +98,7 @@ impl Krate {
98
.expect("clippy output did not contain \"warning: \"");
99
let mut new = line[0..pos].to_string();
100
new.push_str(&line[pos + remove_pat.len()..]);
101
+ new.push('\n');
102
new
103
})
104
.collect();
@@ -142,6 +143,7 @@ pub fn run() {
142
143
144
let all_warnings: Vec<String> = clippy_lint_results.into_iter().flatten().collect();
145
- // TODO: save these into a file
146
- all_warnings.iter().for_each(|l| println!("{}", l));
+ // save the text into mini-crater/logs.txt
147
+ let text = all_warnings.join("");
148
+ std::fs::write("mini-crater/logs.txt", text).unwrap();
149
}
0 commit comments