Build warnings #15

Open
opened 2 years ago by duke · 0 comments
duke commented 2 years ago
Owner

Probably not a bad idea to fix these :

warning: unnecessary parentheses around block return value
   --> lib/src/lightwallet.rs:202:5
    |
202 |     (zdustaddress)
    |     ^^^^^^^^^^^^^^ help: remove these parentheses
    |
    = note: `#[warn(unused_parens)]` on by default

warning: unused variable: `transparent_only`
    --> lib/src/lightwallet.rs:2002:9
     |
2002 |         transparent_only: bool,
     |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transparent_only`
     |
     = note: `#[warn(unused_variables)]` on by default

warning: variable does not need to be mutable
   --> lib/src/lightwallet.rs:105:13
    |
105 |         let mut checksum = double_sha256(&payload);
    |             ----^^^^^^^^
    |             |
    |             help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` on by default

warning: 3 warnings emitted
Probably not a bad idea to fix these : ``` warning: unnecessary parentheses around block return value --> lib/src/lightwallet.rs:202:5 | 202 | (zdustaddress) | ^^^^^^^^^^^^^^ help: remove these parentheses | = note: `#[warn(unused_parens)]` on by default warning: unused variable: `transparent_only` --> lib/src/lightwallet.rs:2002:9 | 2002 | transparent_only: bool, | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transparent_only` | = note: `#[warn(unused_variables)]` on by default warning: variable does not need to be mutable --> lib/src/lightwallet.rs:105:13 | 105 | let mut checksum = double_sha256(&payload); | ----^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default warning: 3 warnings emitted ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.