Skip to content

Commit 35431bd

Browse files
kkysenfw-immunant
authored andcommitted
(c2rust-transpile.rs) Removed unneeded type annotations.
1 parent fac0daa commit 35431bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

c2rust/src/bin/c2rust-transpile.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use clap::{Parser, ValueEnum};
22
use log::LevelFilter;
33
use regex::Regex;
4-
use std::collections::HashSet;
54
use std::path::{Path, PathBuf};
65

76
use c2rust_transpile::{Diagnostic, ReplaceMode, TranspilerConfig};
@@ -181,10 +180,10 @@ fn main() {
181180
.extra_clang_args
182181
.iter()
183182
.map(AsRef::as_ref)
184-
.collect::<Vec<&str>>();
183+
.collect::<Vec<_>>();
185184
let extra_args = extra_args.as_slice();
186185

187-
let enabled_warnings: HashSet<Diagnostic> = args.warn.into_iter().collect();
186+
let enabled_warnings = args.warn.into_iter().collect();
188187

189188
let mut tcfg = TranspilerConfig {
190189
dump_untyped_context: args.dump_untyped_clang_ast,

0 commit comments

Comments
 (0)