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

Commit

Permalink
pr feedback: remove lifetime on shred reference in get_payload
Browse files Browse the repository at this point in the history
  • Loading branch information
AshwinSekar committed Nov 27, 2024
1 parent c018720 commit 9174be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slashing/program/src/shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ impl<'a> Shred<'a> {
{
return false;
}
fn get_payload<'a>(shred: &'a Shred<'a>) -> &'a [u8] {
fn get_payload<'a>(shred: &Shred<'a>) -> &'a [u8] {
let Ok((proof_offset, proof_size)) = shred.get_proof_offset_and_size() else {
return shred.payload;
};
Expand Down

0 comments on commit 9174be4

Please sign in to comment.