Avoid a silly double hash lookup.

This commit is contained in:
Emilio Cobos Álvarez
2020-01-24 11:28:01 +01:00
parent eb9cce6934
commit 12b158c4fc
+1 -3
View File
@@ -80,9 +80,7 @@ impl Library {
for name in &self.config.export.include {
let path = Path::new(name.clone());
if let Some(items) = self.get_items(&path) {
if !dependencies.items.contains(&path) {
dependencies.items.insert(path);
if dependencies.items.insert(path) {
for item in &items {
item.deref().add_dependencies(&self, &mut dependencies);
}