mirror of https://github.com/astral-sh/uv
Add `From` for `FlatDistributions` struct (#8800)
Co-authored-by: konsti <konstin@mailbox.org>
This commit is contained in:
parent
a052418dcd
commit
ef8724c979
|
|
@ -226,3 +226,10 @@ impl From<FlatDistributions> for BTreeMap<Version, PrioritizedDist> {
|
||||||
distributions.0
|
distributions.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// For external users.
|
||||||
|
impl From<BTreeMap<Version, PrioritizedDist>> for FlatDistributions {
|
||||||
|
fn from(distributions: BTreeMap<Version, PrioritizedDist>) -> Self {
|
||||||
|
Self(distributions)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue