@@ -112,7 +112,7 @@ impl CheckpointV0VerifierState {
112112 }
113113}
114114
115- #[ allow ( unreachable_pub, reason = "used by ssz_derive field adapters" ) ]
115+ #[ expect ( unreachable_pub, reason = "used by ssz_derive field adapters" ) ]
116116mod cred_rule_ssz {
117117 use super :: { Buf32 , CredRule } ;
118118
@@ -180,7 +180,7 @@ mod cred_rule_ssz {
180180 }
181181}
182182
183- #[ allow ( unreachable_pub, reason = "used by ssz_derive field adapters" ) ]
183+ #[ expect ( unreachable_pub, reason = "used by ssz_derive field adapters" ) ]
184184mod legacy_checkpoint_ssz {
185185 use ssz_derive:: { Decode , Encode } ;
186186
@@ -205,27 +205,19 @@ mod legacy_checkpoint_ssz {
205205 <LegacyCheckpointSsz as SszEncode >:: ssz_fixed_len ( )
206206 }
207207
208- #[ allow(
209- deprecated,
210- reason = "checkpoint-v0 persists the last verified legacy checkpoint payload"
211- ) ]
212208 pub fn ssz_bytes_len ( value : & Option < Checkpoint > ) -> usize {
213209 to_ssz ( value) . ssz_bytes_len ( )
214210 }
215211
216- #[ allow(
217- deprecated,
218- reason = "checkpoint-v0 persists the last verified legacy checkpoint payload"
219- ) ]
220212 pub fn ssz_append ( value : & Option < Checkpoint > , buf : & mut Vec < u8 > ) {
221213 to_ssz ( value) . ssz_append ( buf) ;
222214 }
223215
224- #[ allow(
225- deprecated,
226- reason = "checkpoint-v0 persists the last verified legacy checkpoint payload"
227- ) ]
228216 fn to_ssz ( value : & Option < Checkpoint > ) -> LegacyCheckpointSsz {
217+ #[ expect(
218+ deprecated,
219+ reason = "checkpoint-v0 persists the last verified legacy checkpoint payload"
220+ ) ]
229221 let checkpoint_bytes = value
230222 . as_ref ( )
231223 . map ( Checkpoint :: to_raw_bytes)
@@ -253,13 +245,13 @@ mod legacy_checkpoint_ssz {
253245 <LegacyCheckpointSsz as SszDecode >:: ssz_fixed_len ( )
254246 }
255247
256- #[ allow(
257- deprecated,
258- reason = "checkpoint-v0 state may still contain a legacy checkpoint payload"
259- ) ]
260248 pub fn from_ssz_bytes ( bytes : & [ u8 ] ) -> Result < Option < Checkpoint > , DecodeError > {
261249 let value = LegacyCheckpointSsz :: from_ssz_bytes ( bytes) ?;
262250 if value. has_checkpoint {
251+ #[ expect(
252+ deprecated,
253+ reason = "checkpoint-v0 state may still contain a legacy checkpoint payload"
254+ ) ]
263255 Checkpoint :: from_raw_bytes ( & value. checkpoint_bytes )
264256 . map ( Some )
265257 . map_err ( |err| DecodeError :: BytesInvalid ( err. to_string ( ) ) )
0 commit comments