Skip to content

Commit

Permalink
🚨 apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidB committed Sep 4, 2023
1 parent 6ff058d commit 774a9c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ mod tests {
.fallback(|| async { (StatusCode::NOT_FOUND, "outer fallback") })
.layer(opentelemetry_tracing_layer());
let mut builder = Request::builder();
for (key, value) in headers.iter() {
for (key, value) in headers {
builder = builder.header(*key, *value);
}
let req = builder.uri(uri).body(Body::empty()).unwrap();
Expand Down
4 changes: 1 addition & 3 deletions examples/grpc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let channel = Channel::from_static("http://127.0.0.1:50051")
.connect()
.await?; //Devskim: ignore DS137138
let channel = ServiceBuilder::new()
.layer(OtelGrpcLayer::default())
.service(channel);
let channel = ServiceBuilder::new().layer(OtelGrpcLayer).service(channel);

let mut client = GreeterClient::new(channel);

Expand Down

0 comments on commit 774a9c4

Please sign in to comment.