Skip to content

Commit c2586ce

Browse files
committed
clippy
1 parent 3c68efa commit c2586ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opentelemetry-sdk/src/logs/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl From<&'static str> for LogError {
5656

5757
impl<T> From<PoisonError<T>> for LogError {
5858
fn from(err: PoisonError<T>) -> Self {
59-
LogError::ClientFailed(err.to_string().into())
59+
LogError::ClientFailed(err.to_string())
6060
}
6161
}
6262

opentelemetry-sdk/src/testing/logs/in_memory_exporter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl InMemoryLogExporter {
173173
/// ```
174174
///
175175
pub fn reset(&self) -> Result<(), LogError> {
176-
let _ = self.logs.lock().map(|mut logs_guard| logs_guard.clear())?;
176+
self.logs.lock().map(|mut logs_guard| logs_guard.clear())?;
177177

178178
Ok(())
179179
}

0 commit comments

Comments
 (0)