Skip to content

Commit 6352912

Browse files
committed
minor improvements
1 parent 6372e2e commit 6352912

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

crates/tlsn/src/proxy/parser.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ fn parse_verify_data(
268268
Ok(finished_record)
269269
}
270270

271-
fn parse_raw_records<'a>(bytes: &'a [u8]) -> Result<Vec<TlsRawRecord<'a>>, TlsParserError> {
271+
fn parse_raw_records(bytes: &[u8]) -> Result<Vec<TlsRawRecord<'_>>, TlsParserError> {
272272
let mut remaining = bytes;
273273
let mut records = Vec::new();
274274

@@ -286,9 +286,9 @@ fn parse_raw_records<'a>(bytes: &'a [u8]) -> Result<Vec<TlsRawRecord<'a>>, TlsPa
286286
Ok(records)
287287
}
288288

289-
fn assemble_handshake<'a>(
290-
handshake_bytes: &'a [u8],
291-
) -> Result<Vec<TlsMessageHandshake<'a>>, TlsParserError> {
289+
fn assemble_handshake(
290+
handshake_bytes: &[u8],
291+
) -> Result<Vec<TlsMessageHandshake<'_>>, TlsParserError> {
292292
let mut remaining = handshake_bytes;
293293
let mut messages = Vec::new();
294294

crates/tlsn/src/proxy/prover.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl ProxyProver {
163163
tls_transcript.certificate_binding()
164164
else {
165165
return Err(
166-
TlsnError::internal().with_msg("version of certifiacte binding is not supported")
166+
TlsnError::internal().with_msg("version of certificate binding is not supported")
167167
);
168168
};
169169

crates/tlsn/src/proxy/verifier.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl ProxyVerifier {
145145

146146
let tlsn_core::connection::CertBinding::V1_2(binding) = handshake.binding else {
147147
return Err(
148-
TlsnError::internal().with_msg("version of certifiacte binding is not supported")
148+
TlsnError::internal().with_msg("version of certificate binding is not supported")
149149
);
150150
};
151151

@@ -205,7 +205,7 @@ impl ProxyVerifier {
205205
.with_msg("verifier could not build tls transcript")
206206
.with_source(e)
207207
})?;
208-
tracing::debug!("sucessfully parsed transcript");
208+
tracing::debug!("successfully parsed transcript");
209209

210210
let cf_vd_record = tls_transcript
211211
.sent()

crates/tlsn/src/verifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ impl Verifier<state::CommitAccepted> {
266266
.with_source(e)
267267
})?;
268268

269-
debug!("verified tags successfuly");
269+
debug!("verified tags successfully");
270270
(vm, keys, ctx, tls_transcript)
271271
}
272272
VerifierDeps::Proxy { verifier, .. } => {

0 commit comments

Comments
 (0)