mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Lint debug prints and disallowed types with clippy
This commit is contained in:
parent
850ba2fb63
commit
9e8a0fae0c
64 changed files with 170 additions and 229 deletions
|
@ -241,6 +241,7 @@ fn unescape(s: &str) -> String {
|
|||
s.replace(r#"\""#, "").replace(r#"\n"#, "\n").replace(r#"\r"#, "")
|
||||
}
|
||||
|
||||
#[allow(clippy::print_stderr)]
|
||||
fn generate_descriptor_clippy(buf: &mut String, path: &Path) {
|
||||
let file_content = std::fs::read_to_string(path).unwrap();
|
||||
let mut clippy_lints: Vec<ClippyLint> = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue