Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: make warning messages more consistent
  • Loading branch information
jubnzv committed Jul 28, 2023
commit 615787754fea452ec5718be5c2968cf056b6a03c
2 changes: 1 addition & 1 deletion linting/src/primitive_topic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn report_field(cx: &LateContext, event_def_id: DefId, field_name: &str) {
cx,
PRIMITIVE_TOPIC,
field.span,
"using `#[ink(topic)]` for a field with a primitive type",
"using `#[ink(topic)]` for a field with a primitive number type",
|diag| {
let snippet = snippet_opt(cx, field.span).expect("snippet must exist");
diag.span_suggestion(
Expand Down
8 changes: 4 additions & 4 deletions linting/ui/fail/primitive_topic.stderr
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
error: using `#[ink(topic)]` for a field with a primitive type
error: using `#[ink(topic)]` for a field with a primitive number type
--> $DIR/primitive_topic.rs:20:9
|
LL | value_4: crate::TyAlias2,
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `#[ink(topic)]`: `value_4: crate::TyAlias2`
|
= note: `-D primitive-topic` implied by `-D warnings`

error: using `#[ink(topic)]` for a field with a primitive type
error: using `#[ink(topic)]` for a field with a primitive number type
--> $DIR/primitive_topic.rs:17:9
|
LL | value_3: crate::TyAlias1,
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `#[ink(topic)]`: `value_3: crate::TyAlias1`

error: using `#[ink(topic)]` for a field with a primitive type
error: using `#[ink(topic)]` for a field with a primitive number type
--> $DIR/primitive_topic.rs:14:9
|
LL | value_2: Balance,
| ^^^^^^^^^^^^^^^^ help: consider removing `#[ink(topic)]`: `value_2: Balance`

error: using `#[ink(topic)]` for a field with a primitive type
error: using `#[ink(topic)]` for a field with a primitive number type
--> $DIR/primitive_topic.rs:11:9
|
LL | value_1: u8,
Expand Down