feat: SafeErc20 utility #1143
Annotations
8 warnings
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/erc20/utils/safe_erc20.rs#L10
[clippy] reported by reviewdog 🐶
warning: unused import: `sol_interface`
--> contracts/src/token/erc20/utils/safe_erc20.rs:10:27
|
10 | use stylus_proc::{public, sol_interface, sol_storage, SolidityError};
| ^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Raw Output:
contracts/src/token/erc20/utils/safe_erc20.rs:10:27:w:warning: unused import: `sol_interface`
--> contracts/src/token/erc20/utils/safe_erc20.rs:10:27
|
10 | use stylus_proc::{public, sol_interface, sol_storage, SolidityError};
| ^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
__END__
|
cargo clippy:
contracts/src/token/erc20/utils/safe_erc20.rs#L105
[clippy] reported by reviewdog 🐶
warning: unused variable: `token`
--> contracts/src/token/erc20/utils/safe_erc20.rs:105:9
|
105 | token: Address,
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
|
= note: `#[warn(unused_variables)]` on by default
Raw Output:
contracts/src/token/erc20/utils/safe_erc20.rs:105:9:w:warning: unused variable: `token`
--> contracts/src/token/erc20/utils/safe_erc20.rs:105:9
|
105 | token: Address,
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
|
= note: `#[warn(unused_variables)]` on by default
__END__
|
cargo clippy:
contracts/src/token/erc20/utils/safe_erc20.rs#L106
[clippy] reported by reviewdog 🐶
warning: unused variable: `spender`
--> contracts/src/token/erc20/utils/safe_erc20.rs:106:9
|
106 | spender: Address,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender`
Raw Output:
contracts/src/token/erc20/utils/safe_erc20.rs:106:9:w:warning: unused variable: `spender`
--> contracts/src/token/erc20/utils/safe_erc20.rs:106:9
|
106 | spender: Address,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender`
__END__
|
cargo clippy:
contracts/src/token/erc20/utils/safe_erc20.rs#L107
[clippy] reported by reviewdog 🐶
warning: unused variable: `value`
--> contracts/src/token/erc20/utils/safe_erc20.rs:107:9
|
107 | value: U256,
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
Raw Output:
contracts/src/token/erc20/utils/safe_erc20.rs:107:9:w:warning: unused variable: `value`
--> contracts/src/token/erc20/utils/safe_erc20.rs:107:9
|
107 | value: U256,
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
__END__
|
cargo clippy:
contracts/src/token/erc20/utils/safe_erc20.rs#L116
[clippy] reported by reviewdog 🐶
warning: unused variable: `token`
--> contracts/src/token/erc20/utils/safe_erc20.rs:116:9
|
116 | token: Address,
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
Raw Output:
contracts/src/token/erc20/utils/safe_erc20.rs:116:9:w:warning: unused variable: `token`
--> contracts/src/token/erc20/utils/safe_erc20.rs:116:9
|
116 | token: Address,
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
__END__
|
cargo clippy:
contracts/src/token/erc20/utils/safe_erc20.rs#L117
[clippy] reported by reviewdog 🐶
warning: unused variable: `spender`
--> contracts/src/token/erc20/utils/safe_erc20.rs:117:9
|
117 | spender: Address,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender`
Raw Output:
contracts/src/token/erc20/utils/safe_erc20.rs:117:9:w:warning: unused variable: `spender`
--> contracts/src/token/erc20/utils/safe_erc20.rs:117:9
|
117 | spender: Address,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spender`
__END__
|
cargo clippy:
contracts/src/token/erc20/utils/safe_erc20.rs#L118
[clippy] reported by reviewdog 🐶
warning: unused variable: `requested_decrease`
--> contracts/src/token/erc20/utils/safe_erc20.rs:118:9
|
118 | requested_decrease: U256,
| ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requested_decrease`
Raw Output:
contracts/src/token/erc20/utils/safe_erc20.rs:118:9:w:warning: unused variable: `requested_decrease`
--> contracts/src/token/erc20/utils/safe_erc20.rs:118:9
|
118 | requested_decrease: U256,
| ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requested_decrease`
__END__
|
Loading