We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 592cbab commit e351b88Copy full SHA for e351b88
src/main.rs
@@ -115,7 +115,7 @@ fn main() {
115
.map_or(false, |s| s == "." || ! s.starts_with('.'))
116
};
117
let output_format = matches.get_one::<String>("OUTPUT_FORMAT")
118
- .map(|s| s.as_str());
+ .map(String::as_str);
119
let output_format = match output_format {
120
Some("human-readable") => OutputFormat::HumanReadable,
121
#[cfg(feature = "json-out")]
@@ -194,7 +194,7 @@ fn main() {
194
if !errors.is_empty() {
195
match output_format {
196
OutputFormat::HumanReadable =>
197
- for error in errors.into_iter() {
+ for error in errors {
198
eprintln!("Error parsing file {}: {}", file, error);
199
},
200
0 commit comments