feat: ERC-4626 extension #2183
Annotations
3 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Cargo clippy:
contracts/src/token/erc20/extensions/erc4626.rs#L666
[clippy] reported by reviewdog 🐶
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> contracts/src/token/erc20/extensions/erc4626.rs:666:51
|
666 | let max_assets = self.max_withdraw(owner, &erc20)?;
| ^^^^^^ help: change this to: `erc20`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-W clippy::needless-borrow` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::needless_borrow)]`
Raw Output:
contracts/src/token/erc20/extensions/erc4626.rs:666:51:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> contracts/src/token/erc20/extensions/erc4626.rs:666:51
|
666 | let max_assets = self.max_withdraw(owner, &erc20)?;
| ^^^^^^ help: change this to: `erc20`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-W clippy::needless-borrow` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::needless_borrow)]`
__END__
|
Cargo clippy:
contracts/src/token/erc20/extensions/erc4626.rs#L695
[clippy] reported by reviewdog 🐶
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> contracts/src/token/erc20/extensions/erc4626.rs:695:49
|
695 | let max_shares = self.max_redeem(owner, &erc20);
| ^^^^^^ help: change this to: `erc20`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Raw Output:
contracts/src/token/erc20/extensions/erc4626.rs:695:49:w:warning: this expression creates a reference which is immediately dereferenced by the compiler
--> contracts/src/token/erc20/extensions/erc4626.rs:695:49
|
695 | let max_shares = self.max_redeem(owner, &erc20);
| ^^^^^^ help: change this to: `erc20`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
__END__
|
Loading