Skip to content

Commit 2cf7817

Browse files
Reapply "expose Strkey::MAX_ENCODED_LEN (doc-hidden) used in public to_string return"
This reverts commit 55e2e16.
1 parent bfabae3 commit 2cf7817

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/strkey.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ impl Strkey {
3636
// SignedPayload is the longest strkey type.
3737
const MAX_PAYLOAD_LEN: usize = ed25519::SignedPayload::MAX_PAYLOAD_LEN;
3838
const MAX_BINARY_LEN: usize = binary_len(Self::MAX_PAYLOAD_LEN);
39-
pub(crate) const MAX_ENCODED_LEN: usize = encode_len(Self::MAX_BINARY_LEN);
39+
#[doc(hidden)]
40+
pub const MAX_ENCODED_LEN: usize = encode_len(Self::MAX_BINARY_LEN);
4041
const _ASSERTS: () = {
4142
assert!(Self::MAX_PAYLOAD_LEN == 100);
4243
assert!(Self::MAX_BINARY_LEN == 103);

0 commit comments

Comments
 (0)