mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
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:
parent
9c5524a9a2
commit
8ad10b9307
4 changed files with 9 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue