Skip to content

Commit a0c24bf

Browse files
committed
fix comment
1 parent 11e99c4 commit a0c24bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rust/signed_doc/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,14 @@ impl Decode<'_, ()> for CatalystSignedDocument {
218218
};
219219
let start = d.position();
220220

221-
let p = d.position();
222221
if let Ok(tag) = d.tag() {
223222
if tag != COSE_SIGN_CBOR_TAG {
224223
return Err(minicbor::decode::Error::message(format!(
225224
"Must be equal to the COSE_Sign tag value: {COSE_SIGN_CBOR_TAG}"
226225
)));
227226
}
228227
} else {
229-
d.set_position(p);
228+
d.set_position(start);
230229
}
231230

232231
if !matches!(d.array()?, Some(4)) {

0 commit comments

Comments
 (0)