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:
dependabot[bot] 2024-07-13 14:10:11 +10:00 committed by GitHub
parent a92ad4952f
commit 0fe605f7f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 45 additions and 58 deletions

View file

@ -210,7 +210,7 @@ root = "/some/path" # `cargo install` destination directory
);
let http = config.http.unwrap();
assert_eq!(http.proxy.unwrap(), CompactString::new_inline("host:port"));
assert_eq!(http.proxy.unwrap(), CompactString::const_new("host:port"));
assert_eq!(http.timeout.unwrap(), 30);
assert_eq!(http.cainfo.unwrap(), Path::new("root").join("cert.pem"));
@ -218,7 +218,7 @@ root = "/some/path" # `cargo install` destination directory
assert_eq!(env.len(), 3);
assert_eq!(
env.get("ENV_VAR_NAME").unwrap(),
&Env::Value(CompactString::new("value"))
&Env::Value(CompactString::const_new("value"))
);
assert_eq!(
env.get("ENV_VAR_NAME_2").unwrap(),