Skip to content

Commit 787d4c2

Browse files
committed
fix(eql): Identifier describes itself through stack-encrypt's Description
#1050 replaced the DescriptorBuilder with a Description built from its first part, so a description cannot be empty. Identifier follows: the table, then the column.
1 parent bb01182 commit 787d4c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/eql/crates/eql-bindings/src/encryption.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ use stack_encrypt::target::transcode::{Reader, Transcode, Visitor};
7878
use stack_encrypt::target::{self, AeadContext, CallerContext};
7979
use stack_encrypt::{
8080
CipherText, ContextPiece, Decrypt, DecryptField, DecryptInto, Decryptable, Decryption,
81-
Describe, DescriptorBuilder, Encrypt, EncryptFrom, Encryption, Error, IntoContext, MaybeEmpty,
81+
Describe, Description, Encrypt, EncryptFrom, Encryption, Error, IntoContext, MaybeEmpty,
8282
NonEmpty, SealedValue, StackCipherText,
8383
};
8484
use vitaminc_prf::PrfValue;
@@ -124,8 +124,8 @@ impl MaybeEmpty for Identifier {
124124
/// context as the two-segment [`stack_encrypt::Label`] and as the pair a
125125
/// `#[stash(struct = .., context = "<table>")]` derive binds.
126126
impl Describe for Identifier {
127-
fn describe(&self, out: &mut DescriptorBuilder) {
128-
let _ = out.text(self.t.as_str()).text(self.c.as_str());
127+
fn describe(&self) -> Description {
128+
Description::text(self.t.as_str()).then_text(self.c.as_str())
129129
}
130130
}
131131

0 commit comments

Comments
 (0)