Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nacnudus committed Jul 3, 2022
1 parent 88120e9 commit d87b687
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions lychee-bin/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::parse::{parse_base, parse_statuscodes};
use anyhow::{anyhow, Context, Error, Result};
use const_format::{concatcp, formatcp};
use lychee_lib::{
Base, Input, FileType, DEFAULT_MAX_REDIRECTS, DEFAULT_MAX_RETRIES,
Base, FileType, Input, DEFAULT_MAX_REDIRECTS, DEFAULT_MAX_RETRIES,
DEFAULT_RETRY_WAIT_TIME_SECS, DEFAULT_TIMEOUT_SECS, DEFAULT_USER_AGENT,
};
use secrecy::{ExposeSecret, SecretString};
Expand Down Expand Up @@ -134,7 +134,14 @@ impl LycheeOptions {
};
self.raw_inputs
.iter()
.map(|s| Input::new(s, file_type_hint, self.config.glob_ignore_case, excluded.clone()))
.map(|s| {
Input::new(
s,
file_type_hint,
self.config.glob_ignore_case,
excluded.clone(),
)
})
.collect::<Result<_, _>>()
.context("Cannot parse inputs from arguments")
}
Expand Down
2 changes: 1 addition & 1 deletion lychee-lib/src/types/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ impl Input {
file_type_hint.unwrap_or_default()
};
let input_content = InputContent {
file_type: file_type,
file_type,
source: InputSource::FsPath(path),
content,
};
Expand Down

0 comments on commit d87b687

Please sign in to comment.