feat: ERC1155 #1411
Annotations
2 errors and 11 warnings
Cargo clippy
reviewdog: Too many results (annotations) in diff.
You may miss some annotations due to GitHub limitation for annotation created by logging command.
Please check GitHub Actions log console to see all results.
Limitation:
- 10 warning annotations and 10 error annotations per step
- 50 annotations per job (sum of annotations from all the steps)
- 50 annotations per run (separate from the job annotations, these annotations aren't created by users)
Source: https://github.com/orgs/community/discussions/26680#discussioncomment-3252835
|
Cargo clippy
reviewdog exited with status code: 1
|
The following actions use a deprecated Node.js version and will be forced to run on node20: giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L408
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:408:9
|
408 | self._set_approval_for_all(msg::sender(), operator, approved)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:729:5
|
729 | / fn _set_approval_for_all(
730 | | &mut self,
731 | | owner: Address,
732 | | operator: Address,
733 | | approved: bool,
734 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:408:9:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:408:9
|
408 | self._set_approval_for_all(msg::sender(), operator, approved)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:729:5
|
729 | / fn _set_approval_for_all(
730 | | &mut self,
731 | | owner: Address,
732 | | operator: Address,
733 | | approved: bool,
734 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L549
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:549:9
|
549 | self._update(from, to, ids.clone(), values.clone())?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:478:5
|
478 | / fn _update(
479 | | &mut self,
480 | | from: Address,
481 | | to: Address,
482 | | ids: Vec<U256>,
483 | | values: Vec<U256>,
484 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:549:9:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:549:9
|
549 | self._update(from, to, ids.clone(), values.clone())?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:478:5
|
478 | / fn _update(
479 | | &mut self,
480 | | from: Address,
481 | | to: Address,
482 | | ids: Vec<U256>,
483 | | values: Vec<U256>,
484 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L552
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:552:13
|
552 | / self._check_on_erc1155_received(
553 | | msg::sender(),
554 | | from,
555 | | to,
556 | | Erc1155ReceiverData::new(ids, values),
557 | | data.to_vec().into(),
558 | | )?;
| |_____________^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:779:5
|
779 | / fn _check_on_erc1155_received(
780 | | &mut self,
781 | | operator: Address,
782 | | from: Address,
... |
785 | | data: alloy_primitives::Bytes,
786 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:552:13:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:552:13
|
552 | / self._check_on_erc1155_received(
553 | | msg::sender(),
554 | | from,
555 | | to,
556 | | Erc1155ReceiverData::new(ids, values),
557 | | data.to_vec().into(),
558 | | )?;
| |_____________^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:779:5
|
779 | / fn _check_on_erc1155_received(
780 | | &mut self,
781 | | operator: Address,
782 | | from: Address,
... |
785 | | data: alloy_primitives::Bytes,
786 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L598
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:598:9
|
598 | self._do_mint(to, vec![id], vec![value], data)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:862:5
|
862 | / fn _do_mint(
863 | | &mut self,
864 | | to: Address,
865 | | ids: Vec<U256>,
866 | | values: Vec<U256>,
867 | | data: &Bytes,
868 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:598:9:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:598:9
|
598 | self._do_mint(to, vec![id], vec![value], data)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:862:5
|
862 | / fn _do_mint(
863 | | &mut self,
864 | | to: Address,
865 | | ids: Vec<U256>,
866 | | values: Vec<U256>,
867 | | data: &Bytes,
868 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L640
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:640:9
|
640 | self._do_mint(to, ids, values, data)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:862:5
|
862 | / fn _do_mint(
863 | | &mut self,
864 | | to: Address,
865 | | ids: Vec<U256>,
866 | | values: Vec<U256>,
867 | | data: &Bytes,
868 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:640:9:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:640:9
|
640 | self._do_mint(to, ids, values, data)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:862:5
|
862 | / fn _do_mint(
863 | | &mut self,
864 | | to: Address,
865 | | ids: Vec<U256>,
866 | | values: Vec<U256>,
867 | | data: &Bytes,
868 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L672
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:672:9
|
672 | self._do_burn(from, vec![id], vec![value])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:910:5
|
910 | / fn _do_burn(
911 | | &mut self,
912 | | from: Address,
913 | | ids: Vec<U256>,
914 | | values: Vec<U256>,
915 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:672:9:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:672:9
|
672 | self._do_burn(from, vec![id], vec![value])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:910:5
|
910 | / fn _do_burn(
911 | | &mut self,
912 | | from: Address,
913 | | ids: Vec<U256>,
914 | | values: Vec<U256>,
915 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L707
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:707:9
|
707 | self._do_burn(from, ids, values)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:910:5
|
910 | / fn _do_burn(
911 | | &mut self,
912 | | from: Address,
913 | | ids: Vec<U256>,
914 | | values: Vec<U256>,
915 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:707:9:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:707:9
|
707 | self._do_burn(from, ids, values)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:910:5
|
910 | / fn _do_burn(
911 | | &mut self,
912 | | from: Address,
913 | | ids: Vec<U256>,
914 | | values: Vec<U256>,
915 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L874
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:874:9
|
874 | / self._update_with_acceptance_check(
875 | | Address::ZERO,
876 | | to,
877 | | ids,
878 | | values,
879 | | data,
880 | | )?;
| |_________^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:541:5
|
541 | / fn _update_with_acceptance_check(
542 | | &mut self,
543 | | from: Address,
544 | | to: Address,
... |
547 | | data: &Bytes,
548 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:874:9:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:874:9
|
874 | / self._update_with_acceptance_check(
875 | | Address::ZERO,
876 | | to,
877 | | ids,
878 | | values,
879 | | data,
880 | | )?;
| |_________^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:541:5
|
541 | / fn _update_with_acceptance_check(
542 | | &mut self,
543 | | from: Address,
544 | | to: Address,
... |
547 | | data: &Bytes,
548 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L921
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:921:9
|
921 | / self._update_with_acceptance_check(
922 | | from,
923 | | Address::ZERO,
924 | | ids,
925 | | values,
926 | | &vec![].into(),
927 | | )?;
| |_________^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:541:5
|
541 | / fn _update_with_acceptance_check(
542 | | &mut self,
543 | | from: Address,
544 | | to: Address,
... |
547 | | data: &Bytes,
548 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:921:9:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:921:9
|
921 | / self._update_with_acceptance_check(
922 | | from,
923 | | Address::ZERO,
924 | | ids,
925 | | values,
926 | | &vec![].into(),
927 | | )?;
| |_________^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:541:5
|
541 | / fn _update_with_acceptance_check(
542 | | &mut self,
543 | | from: Address,
544 | | to: Address,
... |
547 | | data: &Bytes,
548 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Cargo clippy:
contracts/src/token/erc1155/mod.rs#L986
[clippy] reported by reviewdog 🐶
warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:986:9
|
986 | self._update_with_acceptance_check(from, to, ids, values, data)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:541:5
|
541 | / fn _update_with_acceptance_check(
542 | | &mut self,
543 | | from: Address,
544 | | to: Address,
... |
547 | | data: &Bytes,
548 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
Raw Output:
contracts/src/token/erc1155/mod.rs:986:9:w:warning: used underscore-prefixed item
--> contracts/src/token/erc1155/mod.rs:986:9
|
986 | self._update_with_acceptance_check(from, to, ids, values, data)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: item is defined here
--> contracts/src/token/erc1155/mod.rs:541:5
|
541 | / fn _update_with_acceptance_check(
542 | | &mut self,
543 | | from: Address,
544 | | to: Address,
... |
547 | | data: &Bytes,
548 | | ) -> Result<(), Error> {
| |__________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
__END__
|
Loading