diff --git a/support/build/src/metadata/source.rs b/support/build/src/metadata/source.rs index 58ced4a4..4cb96e31 100644 --- a/support/build/src/metadata/source.rs +++ b/support/build/src/metadata/source.rs @@ -72,11 +72,11 @@ pub trait CrateInfoSource { None } } else if let Some(man) = root.bin(target) { - Some(base.override_with_extra(man).into_owned()) - } else { - log::debug!("target not found: {}", target); - None - } + Some(base.override_with_extra(man).into_owned()) + } else { + log::debug!("target not found: {}", target); + None + } } else { Some(base.into_owned()) } @@ -149,11 +149,11 @@ pub trait MetadataSource { None } } else if let Some(target) = self.bin(target) { - let trg = base.override_with_extra_ref(target); - Some(trg.into_owned()) - } else { - None - } + let trg = base.override_with_extra_ref(target); + Some(trg.into_owned()) + } else { + None + } } fn manifest_for_target_any(&self, target: &str) -> Option {