Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Removes unnecessary mut #32476

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Conversation

brooksprumo
Copy link
Contributor

Problem

There are unnecessary mutable variables that clippy will complain about when upgrading Rust to 1.71.0

warning: variable does not need to be mutable
  --> sdk/program/src/message/compiled_keys.rs:43:17
   |
43 |             let mut meta = key_meta_map.entry(ix.program_id).or_default();
   |                 ----^^^^
   |                 |
   |                 help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

Summary of Changes

Remove unnecessary mut

@brooksprumo brooksprumo self-assigned this Jul 13, 2023
@brooksprumo brooksprumo marked this pull request as ready for review July 13, 2023 16:40
Copy link
Contributor

@bw-solana bw-solana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@brooksprumo brooksprumo merged commit 7143667 into solana-labs:master Jul 13, 2023
@brooksprumo brooksprumo deleted the clippy/mut branch July 13, 2023 17:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants