Skip to content

Commit

Permalink
fix compilation in main branch (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Jul 4, 2023
1 parent 37e378c commit aaf4ced
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions crates/libsolv_rs/src/conda_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,15 @@ pub(crate) fn find_highest_version(

candidates.fold(None, |init, record| {
Some(init.map_or_else(
|| (record.version.clone(), !record.track_features.is_empty()),
|| {
(
record.version.version().clone(),
!record.track_features.is_empty(),
)
},
|(version, has_tracked_features)| {
(
version.max(record.version.clone()),
version.max(record.version.version().clone()),
has_tracked_features && record.track_features.is_empty(),
)
},
Expand Down
2 changes: 1 addition & 1 deletion crates/rattler_solve/src/libsolv_rs/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub fn add_virtual_packages(pool: &mut Pool, repo_id: RepoId, packages: &[Generi
subdir: "".to_string(),
timestamp: None,
build_number: 0,
version: p.version.clone(),
version: p.version.clone().into(),
build: p.build_string.clone(),
depends: Vec::new(),
features: None,
Expand Down

0 comments on commit aaf4ced

Please sign in to comment.