Skip to content

Commit d87b687

Browse files
committed
Lint
1 parent 88120e9 commit d87b687

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

lychee-bin/src/options.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::parse::{parse_base, parse_statuscodes};
22
use anyhow::{anyhow, Context, Error, Result};
33
use const_format::{concatcp, formatcp};
44
use lychee_lib::{
5-
Base, Input, FileType, DEFAULT_MAX_REDIRECTS, DEFAULT_MAX_RETRIES,
5+
Base, FileType, Input, DEFAULT_MAX_REDIRECTS, DEFAULT_MAX_RETRIES,
66
DEFAULT_RETRY_WAIT_TIME_SECS, DEFAULT_TIMEOUT_SECS, DEFAULT_USER_AGENT,
77
};
88
use secrecy::{ExposeSecret, SecretString};
@@ -134,7 +134,14 @@ impl LycheeOptions {
134134
};
135135
self.raw_inputs
136136
.iter()
137-
.map(|s| Input::new(s, file_type_hint, self.config.glob_ignore_case, excluded.clone()))
137+
.map(|s| {
138+
Input::new(
139+
s,
140+
file_type_hint,
141+
self.config.glob_ignore_case,
142+
excluded.clone(),
143+
)
144+
})
138145
.collect::<Result<_, _>>()
139146
.context("Cannot parse inputs from arguments")
140147
}

lychee-lib/src/types/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl Input {
342342
file_type_hint.unwrap_or_default()
343343
};
344344
let input_content = InputContent {
345-
file_type: file_type,
345+
file_type,
346346
source: InputSource::FsPath(path),
347347
content,
348348
};

0 commit comments

Comments
 (0)