We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c68efa commit c2586ceCopy full SHA for c2586ce
opentelemetry-sdk/src/logs/error.rs
@@ -56,7 +56,7 @@ impl From<&'static str> for LogError {
56
57
impl<T> From<PoisonError<T>> for LogError {
58
fn from(err: PoisonError<T>) -> Self {
59
- LogError::ClientFailed(err.to_string().into())
+ LogError::ClientFailed(err.to_string())
60
}
61
62
opentelemetry-sdk/src/testing/logs/in_memory_exporter.rs
@@ -173,7 +173,7 @@ impl InMemoryLogExporter {
173
/// ```
174
///
175
pub fn reset(&self) -> Result<(), LogError> {
176
- let _ = self.logs.lock().map(|mut logs_guard| logs_guard.clear())?;
+ self.logs.lock().map(|mut logs_guard| logs_guard.clear())?;
177
178
Ok(())
179
0 commit comments