Skip to content

Commit c0b5866

Browse files
committed
Fix clippy complaints from Rust 1.89.0
1 parent cd7061c commit c0b5866

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

foundations/src/telemetry/testing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl TestTelemetryContext {
111111

112112
/// Returns all the log records produced in the test context.
113113
#[cfg(feature = "logging")]
114-
pub fn log_records(&self) -> RwLockReadGuard<Vec<TestLogRecord>> {
114+
pub fn log_records(&self) -> RwLockReadGuard<'_, Vec<TestLogRecord>> {
115115
self.log_records.read().unwrap()
116116
}
117117

foundations/src/telemetry/tracing/testing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl TestTrace {
6363
/// ```
6464
///
6565
/// [depth-first]: https://en.wikipedia.org/wiki/Depth-first_search
66-
pub fn iter(&self) -> TestTraceIterator {
66+
pub fn iter(&self) -> TestTraceIterator<'_> {
6767
TestTraceIterator {
6868
stack: vec![&self.0],
6969
}

0 commit comments

Comments
 (0)