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.
3. `cargo b`
4. 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
<details><summary>Click to expand/collapse</summary>
<p>
warning: variable does not need to be mutable
--> app/src/lib.rs:29:36
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
[derive(Clone, Debug, Decode, TypeInfo)]
[codec(crate = sails_rs::scale_codec)]
[scale_info(crate = sails_rs::scale_info)]
struct Input { n: u32, }
[sails_rs::service]
impl TestAttributeService { pub fn new() -> Self { Self(()) }
}
mut
= note:
#[warn(unused_mut)]
on by default