From b2445e51a9e4166e12b899de52dc7ba799d94541 Mon Sep 17 00:00:00 2001 From: Tarun Pratap Singh <101409098+Wackyator@users.noreply.github.com> Date: Fri, 25 Aug 2023 13:35:17 +0530 Subject: [PATCH] fix: Version::is_dev returning false for dev version (fix #289) (#293) fix: Version::is_dev returning false for dev version --- crates/rattler_conda_types/src/version/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rattler_conda_types/src/version/mod.rs b/crates/rattler_conda_types/src/version/mod.rs index e575b7bf4..c00c5aece 100644 --- a/crates/rattler_conda_types/src/version/mod.rs +++ b/crates/rattler_conda_types/src/version/mod.rs @@ -358,7 +358,7 @@ impl Version { pub fn is_dev(&self) -> bool { self.segments() .flat_map(|segment| segment.components()) - .any(|component| component.as_string() == Some("dev")) + .any(|component| component.is_dev()) } /// Check if this version version and local strings start with the same as other.