clippy fixes
This commit is contained in:
+9
-4
@@ -109,9 +109,10 @@ async fn main() -> Result<()> {
|
||||
};
|
||||
|
||||
let logs_dir = {
|
||||
let output_name = output_dir
|
||||
.file_name()
|
||||
.map_or_else(|| "output".to_string(), |n| n.to_string_lossy().into_owned());
|
||||
let output_name = output_dir.file_name().map_or_else(
|
||||
|| "output".to_string(),
|
||||
|n| n.to_string_lossy().into_owned(),
|
||||
);
|
||||
let logs_name = format!("{output_name}_logs");
|
||||
output_dir
|
||||
.parent()
|
||||
@@ -147,7 +148,11 @@ async fn main() -> Result<()> {
|
||||
log::info!("Base host: {base_host}");
|
||||
log::info!(
|
||||
"Subdomain crawling: {}",
|
||||
if args.subdomains { "enabled" } else { "disabled" }
|
||||
if args.subdomains {
|
||||
"enabled"
|
||||
} else {
|
||||
"disabled"
|
||||
}
|
||||
);
|
||||
log::info!("Output dir: {}", output_dir.display());
|
||||
log::info!("Logs dir: {}", logs_dir.display());
|
||||
|
||||
Reference in New Issue
Block a user