mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
build(deps): bump compact_str from 0.7.1 to 0.8.0 in the deps group (#1817)
* build(deps): bump compact_str from 0.7.1 to 0.8.0 in the deps group Bumps the deps group with 1 update: [compact_str](https://github.com/ParkMyCar/compact_str). Updates `compact_str` from 0.7.1 to 0.8.0 - [Changelog](https://github.com/ParkMyCar/compact_str/blob/main/CHANGELOG.md) - [Commits](https://github.com/ParkMyCar/compact_str/commits) --- updated-dependencies: - dependency-name: compact_str dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * Fix compilation error and deprecations Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Use `CompactString::const_new` when possible Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
a92ad4952f
commit
0fe605f7f0
15 changed files with 45 additions and 58 deletions
|
@ -96,10 +96,10 @@ pub(super) fn crate_prefix_components(
|
|||
|
||||
match (chars.next(), chars.next(), chars.next(), chars.next()) {
|
||||
(None, None, None, None) => Err(RegistryError::NotFound(crate_name.into())),
|
||||
(Some(_), None, None, None) => Ok((CompactString::new("1"), None)),
|
||||
(Some(_), Some(_), None, None) => Ok((CompactString::new("2"), None)),
|
||||
(Some(_), None, None, None) => Ok((CompactString::const_new("1"), None)),
|
||||
(Some(_), Some(_), None, None) => Ok((CompactString::const_new("2"), None)),
|
||||
(Some(ch), Some(_), Some(_), None) => Ok((
|
||||
CompactString::new("3"),
|
||||
CompactString::const_new("3"),
|
||||
Some(ch.to_lowercase().to_compact_string()),
|
||||
)),
|
||||
(Some(a), Some(b), Some(c), Some(d)) => Ok((
|
||||
|
@ -127,7 +127,7 @@ pub(super) fn render_dl_template(
|
|||
struct Context<'a> {
|
||||
crate_name: &'a str,
|
||||
crate_prefix: CompactString,
|
||||
crate_lowerprefix: String,
|
||||
crate_lowerprefix: CompactString,
|
||||
version: &'a str,
|
||||
cksum: &'a str,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue