Skip to content

Commit 6251d86

Browse files
committed
clippy
1 parent b4a9fe3 commit 6251d86

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

martin/src/file_config.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ async fn resolve_int<T: SourceConfigExtras>(
270270
let dup = if dup { "duplicate " } else { "" };
271271
let id = idr.resolve(&id, url.to_string());
272272
configs.insert(id.clone(), source);
273-
let src_result = cfg.custom.new_sources_url(id.clone(), url.clone()).await;
274-
match src_result {
273+
match cfg.custom.new_sources_url(id.clone(), url.clone()).await {
275274
Err(FileError::IgnoreOnInvalid(_, _)) => {}
276275
Err(e) => return Err(e),
277276
Ok(src) => results.push(src),
@@ -289,8 +288,7 @@ async fn resolve_int<T: SourceConfigExtras>(
289288
let id = idr.resolve(&id, can.to_string_lossy().to_string());
290289
info!("Configured {dup}source {id} from {}", can.display());
291290
configs.insert(id.clone(), source.clone());
292-
let src_result = cfg.custom.new_sources(id, source.into_path()).await;
293-
match src_result {
291+
match cfg.custom.new_sources(id, source.into_path()).await {
294292
Err(FileError::IgnoreOnInvalid(_, _)) => {}
295293
Err(e) => return Err(e),
296294
Ok(src) => results.push(src),
@@ -318,8 +316,7 @@ async fn resolve_int<T: SourceConfigExtras>(
318316

319317
let id = idr.resolve(id, url.to_string());
320318
configs.insert(id.clone(), FileConfigSrc::Path(path));
321-
let src_result = cfg.custom.new_sources_url(id.clone(), url.clone()).await;
322-
match src_result {
319+
match cfg.custom.new_sources_url(id.clone(), url.clone()).await {
323320
Err(FileError::IgnoreOnInvalid(_, _)) => {}
324321
Err(e) => return Err(e),
325322
Ok(src) => results.push(src),
@@ -352,8 +349,7 @@ async fn resolve_int<T: SourceConfigExtras>(
352349
info!("Configured source {id} from {}", can.display());
353350
files.insert(can);
354351
configs.insert(id.clone(), FileConfigSrc::Path(path.clone()));
355-
let src_result = cfg.custom.new_sources(id, path).await;
356-
match src_result {
352+
match cfg.custom.new_sources(id, path).await {
357353
Err(FileError::IgnoreOnInvalid(_, _)) => {}
358354
Err(e) => return Err(e),
359355
Ok(src) => results.push(src),

0 commit comments

Comments
 (0)