Skip to content

Commit e351b88

Browse files
committed
main: delint
1 parent 592cbab commit e351b88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ fn main() {
115115
.map_or(false, |s| s == "." || ! s.starts_with('.'))
116116
};
117117
let output_format = matches.get_one::<String>("OUTPUT_FORMAT")
118-
.map(|s| s.as_str());
118+
.map(String::as_str);
119119
let output_format = match output_format {
120120
Some("human-readable") => OutputFormat::HumanReadable,
121121
#[cfg(feature = "json-out")]
@@ -194,7 +194,7 @@ fn main() {
194194
if !errors.is_empty() {
195195
match output_format {
196196
OutputFormat::HumanReadable =>
197-
for error in errors.into_iter() {
197+
for error in errors {
198198
eprintln!("Error parsing file {}: {}", file, error);
199199
},
200200

0 commit comments

Comments
 (0)