Skip to content

Remove unnecessary mutability#6

Open
jstasiak wants to merge 1 commit intowangds:masterfrom
jstasiak:remove-unnecessary-mutability
Open

Remove unnecessary mutability#6
jstasiak wants to merge 1 commit intowangds:masterfrom
jstasiak:remove-unnecessary-mutability

Conversation

@jstasiak
Copy link

This was generating warnings:

warning: variable does not need to be mutable
  --> src/codec/codec007.rs:86:13
   |
86 |         let mut row = &mut dst.buf[start..end];
   |             ----^^^
   |             |
   |             help: remove this `mut`
   |
   = note: #[warn(unused_mut)] on by default

warning: variable does not need to be mutable
  --> src/codec/codec015.rs:50:13
   |
50 |         let mut row = &mut row[start..end];
   |             ----^^^
   |             |
   |             help: remove this `mut`

This was generating warnings:

warning: variable does not need to be mutable
  --> src/codec/codec007.rs:86:13
   |
86 |         let mut row = &mut dst.buf[start..end];
   |             ----^^^
   |             |
   |             help: remove this `mut`
   |
   = note: #[warn(unused_mut)] on by default

warning: variable does not need to be mutable
  --> src/codec/codec015.rs:50:13
   |
50 |         let mut row = &mut row[start..end];
   |             ----^^^
   |             |
   |             help: remove this `mut`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant