From 196bb169a19c34f3aba1786ed2ec3ce1cb69251f Mon Sep 17 00:00:00 2001 From: DmitryDodzin Date: Mon, 13 Dec 2021 21:49:37 +0200 Subject: [PATCH] fix: ops --- crates/mol-cargo/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/mol-cargo/src/lib.rs b/crates/mol-cargo/src/lib.rs index c1a39e9..1b7e5a1 100644 --- a/crates/mol-cargo/src/lib.rs +++ b/crates/mol-cargo/src/lib.rs @@ -52,7 +52,7 @@ impl Cargo { return Cargo::check_read_dir(exists, globs, fs::read_dir(&link_value).await?).await; } - if globs.is_match(entry.path()) && file_type.is_file() && entry.file_name() == "Cargo.toml" { + if globs.is_match(entry_path) && file_type.is_file() && entry.file_name() == "Cargo.toml" { result.extend(Cargo.read_package(entry.path()).await?); } }