From 803d661be01f76dbc895c555b8a2cc56b23211a3 Mon Sep 17 00:00:00 2001 From: nichmor Date: Wed, 4 Dec 2024 14:00:42 +0200 Subject: [PATCH] feat: expose python --- src/recipe/parser.rs | 2 +- src/render/solver.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/recipe/parser.rs b/src/recipe/parser.rs index c740b1bc..9f4aa3ea 100644 --- a/src/recipe/parser.rs +++ b/src/recipe/parser.rs @@ -35,7 +35,7 @@ mod test; pub use self::{ about::About, - build::{Build, DynamicLinking, PrefixDetection}, + build::{Build, DynamicLinking, PrefixDetection, Python}, cache::Cache, glob_vec::GlobVec, output::find_outputs_from_src, diff --git a/src/render/solver.rs b/src/render/solver.rs index c2a888d6..39db5417 100644 --- a/src/render/solver.rs +++ b/src/render/solver.rs @@ -35,8 +35,7 @@ fn print_as_table(packages: &[RepoDataRecord]) { package .channel .as_ref() - .map(|s| s.rsplit('/').find(|s| !s.is_empty())) - .flatten() + .and_then(|s| s.rsplit('/').find(|s| !s.is_empty())) .expect("expected channel to be defined and contain '/'") .to_string() } else {