Skip to content

feat(test): unit test external call mock #1738

feat(test): unit test external call mock

feat(test): unit test external call mock #1738

GitHub Actions / clippy failed Dec 11, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (1)

contracts/src/utils/context.rs|15 col 1| warning: this function could have a #[must_use] attribute
--> contracts/src/utils/context.rs:15:1
|
15 | pub fn msg_sender() -> Address {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: #[must_use] pub fn msg_sender() -> Address
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: -W clippy::must-use-candidate implied by -W clippy::pedantic
= help: to override -W clippy::pedantic add #[allow(clippy::must_use_candidate)]

Filtered Findings (0)

Annotations

Check warning on line 15 in contracts/src/utils/context.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/src/utils/context.rs#L15

warning: this function could have a `#[must_use]` attribute
  --> contracts/src/utils/context.rs:15:1
   |
15 | pub fn msg_sender() -> Address {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn msg_sender() -> Address`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
   = note: `-W clippy::must-use-candidate` implied by `-W clippy::pedantic`
   = help: to override `-W clippy::pedantic` add `#[allow(clippy::must_use_candidate)]`
Raw output
contracts/src/utils/context.rs:15:1:w:warning: this function could have a `#[must_use]` attribute
  --> contracts/src/utils/context.rs:15:1
   |
15 | pub fn msg_sender() -> Address {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn msg_sender() -> Address`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
   = note: `-W clippy::must-use-candidate` implied by `-W clippy::pedantic`
   = help: to override `-W clippy::pedantic` add `#[allow(clippy::must_use_candidate)]`


__END__