Skip to content

Commit 923ca9b

Browse files
committed
chore: magic Rust lifetime elision woo-woo
Thanks you very much, Clippy, for the suggestion! The code looks so poetic now!
1 parent 23f65bb commit 923ca9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime_tracing/src/cbor_zstd_writer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct CborZstdTraceWriter<'a> {
2222
trace_events_file_zstd_encoder: Option<Encoder<'a, File>>,
2323
}
2424

25-
impl<'a> CborZstdTraceWriter<'a> {
25+
impl CborZstdTraceWriter<'_> {
2626
/// Create a new tracer instance for the given program and arguments.
2727
pub fn new(program: &str, args: &[String]) -> Self {
2828
CborZstdTraceWriter {
@@ -34,7 +34,7 @@ impl<'a> CborZstdTraceWriter<'a> {
3434
}
3535
}
3636

37-
impl<'a> AbstractTraceWriter for CborZstdTraceWriter<'a> {
37+
impl AbstractTraceWriter for CborZstdTraceWriter<'_> {
3838
fn get_data(&self) -> &AbstractTraceWriterData {
3939
&self.base
4040
}
@@ -58,7 +58,7 @@ impl<'a> AbstractTraceWriter for CborZstdTraceWriter<'a> {
5858
}
5959
}
6060

61-
impl<'a> TraceWriter for CborZstdTraceWriter<'a> {
61+
impl TraceWriter for CborZstdTraceWriter<'_> {
6262
fn begin_writing_trace_events(&mut self, path: &std::path::Path) -> Result<(), Box<dyn std::error::Error>> {
6363
let pb = path.to_path_buf();
6464
self.trace_events_path = Some(pb.clone());

0 commit comments

Comments
 (0)