Skip to content

Commit 14b868f

Browse files
committed
chore: Replace mustn't with must not in error message
1 parent f267020 commit 14b868f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/stackable-versioned-macros/src/attrs/item/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl CommonItemAttributes {
197197

198198
if self.deprecated.is_none() && starts_with_deprecated {
199199
return Err(Error::custom(
200-
format!("not marked as `deprecated` and thus mustn't include the `{deprecated_prefix}` prefix", deprecated_prefix = item_ident.deprecated_prefix())
200+
format!("not marked as `deprecated` and thus must not include the `{deprecated_prefix}` prefix", deprecated_prefix = item_ident.deprecated_prefix())
201201
).with_span(item_ident));
202202
}
203203

@@ -231,7 +231,7 @@ impl CommonItemAttributes {
231231
if from_name.starts_with(item_ident.deprecated_prefix()) {
232232
errors.push(
233233
Error::custom(
234-
"the previous name mustn't start with the deprecation prefix",
234+
"the previous name must not start with the deprecation prefix",
235235
)
236236
.with_span(&from_name.span()),
237237
);

crates/stackable-versioned-macros/tests/default/fail/changed.stderr

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)