We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
c2rust-transpile.rs
1 parent fac0daa commit 35431bdCopy full SHA for 35431bd
c2rust/src/bin/c2rust-transpile.rs
@@ -1,7 +1,6 @@
1
use clap::{Parser, ValueEnum};
2
use log::LevelFilter;
3
use regex::Regex;
4
-use std::collections::HashSet;
5
use std::path::{Path, PathBuf};
6
7
use c2rust_transpile::{Diagnostic, ReplaceMode, TranspilerConfig};
@@ -181,10 +180,10 @@ fn main() {
181
180
.extra_clang_args
182
.iter()
183
.map(AsRef::as_ref)
184
- .collect::<Vec<&str>>();
+ .collect::<Vec<_>>();
185
let extra_args = extra_args.as_slice();
186
187
- let enabled_warnings: HashSet<Diagnostic> = args.warn.into_iter().collect();
+ let enabled_warnings = args.warn.into_iter().collect();
188
189
let mut tcfg = TranspilerConfig {
190
dump_untyped_context: args.dump_untyped_clang_ast,
0 commit comments