Update Rust crate compact_str to 0.8.0 (#12333)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
renovate[bot] 2024-07-15 06:03:23 +00:00 committed by GitHub
parent 9c5524a9a2
commit 8ad10b9307
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 10 deletions

View file

@ -22,9 +22,8 @@ impl Name {
}
#[inline]
pub fn new_static(name: &'static str) -> Self {
// TODO(Micha): Use CompactString::const_new once we upgrade to 0.8 https://github.com/ParkMyCar/compact_str/pull/336
Self(compact_str::CompactString::from(name))
pub const fn new_static(name: &'static str) -> Self {
Self(compact_str::CompactString::const_new(name))
}
pub fn as_str(&self) -> &str {