mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Optimize CratesToml
Use Box<str> instead of String Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
28525359d3
commit
083fe61aca
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ use crate_version_source::*;
|
||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
pub struct CratesToml<'a> {
|
pub struct CratesToml<'a> {
|
||||||
#[serde(with = "tuple_vec_map")]
|
#[serde(with = "tuple_vec_map")]
|
||||||
v1: Vec<(String, Cow<'a, [CompactString]>)>,
|
v1: Vec<(Box<str>, Cow<'a, [CompactString]>)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'v1> CratesToml<'v1> {
|
impl<'v1> CratesToml<'v1> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue