Skip to content

Commit 610cec9

Browse files
authored
fix(sidekick/rust): Remove unnecessary dereference in transport template (#2481)
Removes an unnecessary `&*` in the `with_instrumentation` call within the generated `transport.rs` file. This was causing a `clippy::explicit_auto_deref` warning. This issue was highlighted in the google-cloud-rust CI after merging librarian PR #2443. See https://github.com/googleapis/google-cloud-rust/actions/runs/18226945878/job/51900522484?pr=3457 Tested: - Regenerated showcase with detailed-tracing-attributes=true, confirmed clippy passes. - Regenerated showcase with detailed-tracing-attributes=false, confirmed clippy passes and no tracing code was added.
1 parent fe6b1be commit 610cec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sidekick/internal/rust/templates/crate/src/transport.rs.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl {{Codec.Name}} {
5757
let tracing_is_enabled = gaxi::options::tracing_enabled(&config);
5858
let inner = gaxi::http::ReqwestClient::new(config, crate::DEFAULT_HOST).await?;
5959
let inner = if tracing_is_enabled {
60-
inner.with_instrumentation(&*crate::info::INSTRUMENTATION_CLIENT_INFO)
60+
inner.with_instrumentation(&crate::info::INSTRUMENTATION_CLIENT_INFO)
6161
} else {
6262
inner
6363
};

0 commit comments

Comments
 (0)