Skip to content

Commit

Permalink
Fix clippy 0.1.84 lints (#1987)
Browse files Browse the repository at this point in the history
* Fix clippy 0.1.84 lints

* Fix lints for wasm32-unknown-unknown target
  • Loading branch information
heaths authored Jan 10, 2025
1 parent e87e071 commit 590556d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sdk/core/azure_core_amqp/src/cbs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl<'a> AmqpClaimsBasedSecurity<'a> {
}
}

impl<'a> AmqpClaimsBasedSecurityApis for AmqpClaimsBasedSecurity<'a> {
impl AmqpClaimsBasedSecurityApis for AmqpClaimsBasedSecurity<'_> {
async fn authorize_path(
&self,
path: String,
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure_core_amqp/src/noop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<'a> NoopAmqpClaimsBasedSecurity<'a> {
}
}

impl<'a> AmqpClaimsBasedSecurityApis for NoopAmqpClaimsBasedSecurity<'a> {
impl AmqpClaimsBasedSecurityApis for NoopAmqpClaimsBasedSecurity<'_> {
async fn attach(&self) -> Result<()> {
unimplemented!();
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure_core_test/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub async fn start(
test_data_dir: impl AsRef<Path>,
options: Option<ProxyOptions>,
) -> Result<Proxy> {
if env::var(PROXY_MANUAL_START).is_ok_and(|v| v.to_ascii_lowercase() == "true") {
if env::var(PROXY_MANUAL_START).is_ok_and(|v| v.eq_ignore_ascii_case("true")) {
tracing::event!(target: crate::SPAN_TARGET, Level::WARN, "environment variable {PROXY_MANUAL_START} is 'true'; not starting test proxy");
return Ok(Proxy::default());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ impl Policy for AuthorizationPolicy {
/// In the "aad" case, the signature is the AAD token.
///
/// NOTE: Resource tokens are not yet supported.
async fn generate_authorization<'a>(
async fn generate_authorization(
auth_token: &Credential,
url: &Url,

// Unused unless feature="key_auth", but I don't want to mess with excluding it since it makes call sites more complicated
#[allow(unused_variables)] signature_target: SignatureTarget<'a>,
#[allow(unused_variables)] signature_target: SignatureTarget<'_>,
) -> azure_core::Result<String> {
let token = match auth_token {
Credential::Token(token_credential) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl ProducerClient {
/// }
/// ```
///
pub async fn submit_batch<'a>(&self, batch: &EventDataBatch<'a>) -> Result<()> {
pub async fn submit_batch(&self, batch: &EventDataBatch<'_>) -> Result<()> {
let sender = self.ensure_sender(batch.get_batch_path()).await?;
let messages = batch.get_messages();

Expand Down

0 comments on commit 590556d

Please sign in to comment.