Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions der/src/asn1/octet_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ mod tests {
const EXAMPLE_BER: &[u8] = &hex!(
"2480" // Constructed indefinite length OCTET STRING
"040648656c6c6f2c" // Segment containing "Hello,"
"040620776f726c64" // Segment containing "world"
"040620776f726c64" // Segment containing " world"
"0000" // End-of-contents marker
);

Expand All @@ -405,7 +405,7 @@ mod tests {
"A080" // indefinite length explicit tag
"2480" // Constructed indefinite length OCTET STRING
"040648656c6c6f2c" // Segment containing "Hello,"
"040620776f726c64" // Segment containing "world"
"040620776f726c64" // Segment containing " world"
"0000" // End-of-contents marker
"0000" // End-of-contents marker
);
Expand Down Expand Up @@ -435,7 +435,7 @@ mod tests {
const EXAMPLE_BER: &[u8] = &hex!(
"A080" // implicit tag, constructed indefinite length OCTET STRING
"040648656c6c6f2c" // Segment containing "Hello,"
"040620776f726c64" // Segment containing "world"
"040620776f726c64" // Segment containing " world"
"0000" // End-of-contents marker
);

Expand Down
2 changes: 1 addition & 1 deletion der/tests/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ mod choice {
obj.encode(&mut encoder).unwrap();

let encoded = encoder.finish().unwrap();
println!("encoded: {:02X?}", encoded);
println!("encoded: {encoded:02X?}");

let decoded = ImplicitChoice::from_der(encoded).unwrap();

Expand Down
4 changes: 2 additions & 2 deletions mcf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl McfHash {
}

/// Get an [`McfHashRef`] which corresponds to this owned [`McfHash`].
pub fn as_mcf_hash_ref(&self) -> McfHashRef {
pub fn as_mcf_hash_ref(&self) -> McfHashRef<'_> {
McfHashRef(self.as_str())
}

Expand All @@ -133,7 +133,7 @@ impl McfHash {

/// Get an iterator over the parts of the password hash as delimited by `$`, excluding the
/// initial identifier.
pub fn fields(&self) -> Fields {
pub fn fields(&self) -> Fields<'_> {
self.as_mcf_hash_ref().fields()
}

Expand Down
4 changes: 2 additions & 2 deletions x509-cert/tests/builder_crl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ fn crl_verify() {
.as_bytes(),
);
assert_eq!(status.code(), Some(2));
println!("{}", verification_output);
println!("{}", verification_stderr);
println!("{verification_output}");
println!("{verification_stderr}");
assert!(verification_stderr.contains("certificate revoked"));
}