You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on gas estimation for reply hook I faced the issue with attributes on service/program methods. Looks like the attributes are completely ignored.
build log is attached. There is the warning that mut is not necessary however it is and the redundant attribute has been applied.
Possible Solution
No response
Notes
No response
Relevant Log Output
Click to expand/collapse
warning: variable does not need to be mutable
--> app/src/lib.rs:29:36
|
29 | pub fn do_something(&mut self, mut input: Input) -> String {
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
The text was updated successfully, but these errors were encountered:
Problem
While working on gas estimation for reply hook I faced the issue with attributes on service/program methods. Looks like the attributes are completely ignored.
Steps
cargo-sails new-program test-attriute
cargo b
mut
is not necessary however it is and the redundant attribute has been applied.Possible Solution
No response
Notes
No response
Relevant Log Output
Click to expand/collapse
The text was updated successfully, but these errors were encountered: