Skip to content

Commit 0ad193f

Browse files
committed
clippy+fmt
1 parent b1fff95 commit 0ad193f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

opentelemetry-sdk/src/export/logs/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ pub trait LogExporter: Send + Sync + Debug {
7979
/// A `LogResult<()>`, which is a result type indicating either a successful export (with
8080
/// `Ok(())`) or an error (`Err(LogError)`) if the export operation failed.
8181
///
82-
fn export(
83-
&self,
84-
batch: LogBatch<'_>,
85-
) -> impl std::future::Future<Output = ExportResult> + Send;
82+
fn export(&self, batch: LogBatch<'_>)
83+
-> impl std::future::Future<Output = ExportResult> + Send;
8684

8785
/// Shuts down the exporter. This function is idempotent; calling it
8886
/// more than once has no additional effect.

stress/src/logs.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ mod throughput;
2323
struct MockLogExporter;
2424

2525
impl LogExporter for MockLogExporter {
26-
fn export(
27-
&self,
28-
_batch: LogBatch<'_>,
29-
) -> impl std::future::Future<Output = LogResult<()>> + Send {
30-
async { Ok(()) }
26+
async fn export(&self, _batch: LogBatch<'_>) -> LogResult<()> {
27+
Ok(())
3128
}
3229
}
3330

0 commit comments

Comments
 (0)