forked from use-ink/ink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework the lint after use-ink#1827
- Loading branch information
Showing
2 changed files
with
57 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
error: using `#[ink(topic)]` for a field with a primitive number type | ||
--> $DIR/primitive_topic.rs:20:9 | ||
--> $DIR/primitive_topic.rs:11:9 | ||
| | ||
LL | value_4: crate::TyAlias2, | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `#[ink(topic)]`: `value_4: crate::TyAlias2` | ||
LL | value_1: u8, | ||
| ^^^^^^^^^^^ help: consider removing `#[ink(topic)]`: `value_1: u8` | ||
| | ||
= note: `-D primitive-topic` implied by `-D warnings` | ||
|
||
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 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 number type | ||
--> $DIR/primitive_topic.rs:11:9 | ||
--> $DIR/primitive_topic.rs:17:9 | ||
| | ||
LL | value_1: u8, | ||
| ^^^^^^^^^^^ help: consider removing `#[ink(topic)]`: `value_1: u8` | ||
LL | value_3: crate::TyAlias1, | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `#[ink(topic)]`: `value_3: crate::TyAlias1` | ||
|
||
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` | ||
|
||
error: aborting due to 4 previous errors | ||
|