Skip to content

Commit b381308

Browse files
committed
run cargo fmt and clippy
1 parent 0f5f9a7 commit b381308

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

example-service/src/server.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ async fn main() -> anyhow::Result<()> {
6464
// Ignore accept errors.
6565
.filter_map(|r| future::ready(r.ok()))
6666
.map(|t| {
67-
t.map_ok(|msg: ClientMessage<SharedContext, _>| {
68-
msg.map_context(ServerContext::new)
69-
})
67+
t.map_ok(|msg: ClientMessage<SharedContext, _>| msg.map_context(ServerContext::new))
7068
})
7169
.map(server::BaseChannel::with_defaults)
7270
// Limit channels to 1 per IP.

tarpc/src/context.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@
1010
use crate::trace::{self, TraceId};
1111
use opentelemetry::trace::TraceContextExt;
1212
use static_assertions::assert_impl_all;
13-
use std::{convert::TryFrom, time::{Duration, Instant}};
1413
use std::ops::{Deref, DerefMut};
14+
use std::{
15+
convert::TryFrom,
16+
time::{Duration, Instant},
17+
};
1518
use tracing_opentelemetry::OpenTelemetrySpanExt;
1619

1720
/// A request context that carries request-scoped information like deadlines and trace information.

0 commit comments

Comments
 (0)