Skip to content

Commit 67eea0b

Browse files
committed
Fix explicit lifetime clippy lint
There is a clippy lint for the use of an explicit lifetime. Elid the lifetime instead.
1 parent 1363dc6 commit 67eea0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus_encoding/src/encode/encoders.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl<'e, T: Encodable> SliceEncoder<'e, T> {
101101
}
102102
}
103103

104-
impl<'e, T: Encodable> Encoder for SliceEncoder<'e, T> {
104+
impl<T: Encodable> Encoder for SliceEncoder<'_, T> {
105105
fn current_chunk(&self) -> Option<&[u8]> {
106106
if let Some(compact_size) = self.compact_size.as_ref() {
107107
return Some(compact_size);

0 commit comments

Comments
 (0)