Skip to content

Commit

Permalink
update deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Jun 9, 2024
1 parent 3a88419 commit b4f3e45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compact_str/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,14 @@ impl CompactString {
}

/// Creates a new inline [`CompactString`] at compile time.
#[deprecated(since = "0.8.0", note = "replaced by CompactString::const_new")]
#[deprecated(since = "0.8.0", note = "replaced by CompactString::const_new, will be removed in 0.9.0")]
#[inline]
pub const fn new_inline(text: &'static str) -> Self {
CompactString::const_new(text)
}

/// Creates a new inline [`CompactString`] from `&'static str` at compile time.
#[deprecated(since = "0.8.0", note = "replaced by CompactString::const_new")]
#[deprecated(since = "0.8.0", note = "replaced by CompactString::const_new, will be removed in 0.9.0")]
#[inline]
pub const fn from_static_str(text: &'static str) -> Self {
CompactString::const_new(text)
Expand Down

0 comments on commit b4f3e45

Please sign in to comment.