Skip to content

Commit 62e36cf

Browse files
committed
Update deprecation warnings
1 parent e2fcaac commit 62e36cf

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

crates/cuid1/src/cuid1.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ static FINGERPRINT: Lazy<String> =
3939
/// ```
4040
#[deprecated(
4141
since = "1.3.0",
42-
note = "cuid() is deprecated. Use cuid2() instead. See https://github.com/paralleldrive/cuid2#improvements-over-cuid for more information"
42+
note = "cuid() is deprecated. Use cuid2() instead, or switch to the cuid2 crate. See \
43+
https://github.com/paralleldrive/cuid2#improvements-over-cuid for more information"
4344
)]
4445
#[inline]
4546
pub fn cuid() -> Result<String, CuidError> {
@@ -85,7 +86,9 @@ pub fn cuid() -> Result<String, CuidError> {
8586
/// ```
8687
#[deprecated(
8788
since = "1.3.0",
88-
note = "slug() is based on cuid(), which is deprecated. Use cuid2() instead. See https://github.com/paralleldrive/cuid2#improvements-over-cuid for more information"
89+
note = "slug() is based on cuid(), which is deprecated. Use cuid2() instead, \
90+
or switch to the cuid2 crate. See \
91+
https://github.com/paralleldrive/cuid2#improvements-over-cuid for more information"
8992
)]
9093
#[inline]
9194
pub fn slug() -> Result<String, CuidError> {
@@ -113,7 +116,9 @@ pub fn slug() -> Result<String, CuidError> {
113116
/// ```
114117
#[deprecated(
115118
since = "1.3.0",
116-
note = "is_cuid() is based on cuid(), which is deprecated. Use cuid2() instead. See https://github.com/paralleldrive/cuid2#improvements-over-cuid for more information"
119+
note = "is_cuid() is based on cuid(), which is deprecated. Use cuid2() instead, \
120+
or switch to the cuid2 crate. See \
121+
https://github.com/paralleldrive/cuid2#improvements-over-cuid for more information"
117122
)]
118123
#[inline]
119124
pub fn is_cuid<S: AsRef<str>>(to_check: S) -> bool {
@@ -142,7 +147,9 @@ pub fn is_cuid<S: AsRef<str>>(to_check: S) -> bool {
142147
/// ```
143148
#[deprecated(
144149
since = "1.3.0",
145-
note = "is_slug() is based on cuid(), which is deprecated. Use cuid2() instead. See https://github.com/paralleldrive/cuid2#improvements-over-cuid for more information"
150+
note = "is_slug() is based on cuid(), which is deprecated. Use cuid2() instead, \
151+
or switch to the cuid2 crate. See \
152+
https://github.com/paralleldrive/cuid2#improvements-over-cuid for more information"
146153
)]
147154
#[inline]
148155
pub fn is_slug<S: AsRef<str>>(to_check: S) -> bool {

0 commit comments

Comments
 (0)