Skip to content

Commit 5c29767

Browse files
committed
Fix Extension Constraint usage of Unparsed
Previous commits mean that all usages of Unparsed should call `encoded_len()` and `encode()` directly, rather than access the internal `Vec<u8>`. Signed-off-by: Ross Williams <ross@ross-williams.net>
1 parent 88c8022 commit 5c29767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/proto/message.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ impl Encode for KeyConstraint {
446446
Self::Extension(extension) => [
447447
base,
448448
extension.name.encoded_len()?,
449-
extension.details.0.encoded_len()?,
449+
extension.details.encoded_len()?,
450450
]
451451
.checked_sum(),
452452
}
@@ -462,7 +462,7 @@ impl Encode for KeyConstraint {
462462
Self::Extension(extension) => {
463463
255u8.encode(writer)?;
464464
extension.name.encode(writer)?;
465-
extension.details.0.encode(writer)
465+
extension.details.encode(writer)
466466
}
467467
}
468468
}

0 commit comments

Comments
 (0)