mirror of https://github.com/astral-sh/uv
Remove unnecessary `.to_string()` call (#10419)
This commit is contained in:
parent
f65fcf23b3
commit
5551f9f3da
|
|
@ -83,11 +83,11 @@ impl Tags {
|
|||
pub fn new(tags: Vec<(String, String, String)>) -> Self {
|
||||
let mut map = FxHashMap::default();
|
||||
for (index, (py, abi, platform)) in tags.into_iter().rev().enumerate() {
|
||||
map.entry(py.to_string())
|
||||
map.entry(py)
|
||||
.or_insert(FxHashMap::default())
|
||||
.entry(abi.to_string())
|
||||
.entry(abi)
|
||||
.or_insert(FxHashMap::default())
|
||||
.entry(platform.to_string())
|
||||
.entry(platform)
|
||||
.or_insert(TagPriority::try_from(index).expect("valid tag priority"));
|
||||
}
|
||||
Self { map: Arc::new(map) }
|
||||
|
|
|
|||
Loading…
Reference in New Issue