From 3855484ecac25e58fe6eb5d1d28d7aaf75965020 Mon Sep 17 00:00:00 2001 From: dishmaker <141624503+dishmaker@users.noreply.github.com> Date: Tue, 22 Sep 2026 23:04:28 +0200 Subject: [PATCH] pkcs8: add note+TODO about BitStringLike/AsBitStringRef --- pkcs8/src/private_key_info.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkcs8/src/private_key_info.rs b/pkcs8/src/private_key_info.rs index 6ab7c4a7b..8de381988 100644 --- a/pkcs8/src/private_key_info.rs +++ b/pkcs8/src/private_key_info.rs @@ -445,7 +445,9 @@ pub type PrivateKeyInfoRef<'a> = PrivateKeyInfo, &'a OctetStringRef, /// [`BitStringLike`] marks object that will act like a `BitString`. /// /// It will allow to get a [`BitStringRef`] that points back to the underlying bytes. -// TODO(tarcieri): replace this with `AsRef` when we can have `&BitStringRef`. +/// +/// Note: This trait will be replaced with [`der::asn1::AsBitStringRef`]. +// TODO: replace with `der::asn1::AsBitStringRef` (#2434) pub trait BitStringLike { fn as_bit_string(&self) -> BitStringRef<'_>; }