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

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 21, 2022
1 parent cd2988f commit a074cc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions program-runtime/src/invoke_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ mod tests {
.get(owned_index)
.unwrap()
.data()
.get(0)
.first()
.unwrap(),
(MAX_DEPTH + owned_index) as u8
);
Expand All @@ -1451,7 +1451,7 @@ mod tests {
.unwrap()
.borrow_mut()
.data()
.get(0)
.first()
.unwrap();
*invoke_context
.transaction_context
Expand All @@ -1471,7 +1471,7 @@ mod tests {
.get(not_owned_index)
.unwrap()
.data()
.get(0)
.first()
.unwrap(),
data
);
Expand Down
2 changes: 1 addition & 1 deletion zk-token-sdk/src/zk_token_proof_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl ProofInstruction {
}

pub fn decode_type(input: &[u8]) -> Option<Self> {
input.get(0).and_then(|x| FromPrimitive::from_u8(*x))
input.first().and_then(|x| FromPrimitive::from_u8(*x))
}

pub fn decode_data<T: Pod>(input: &[u8]) -> Option<&T> {
Expand Down

0 comments on commit a074cc7

Please sign in to comment.