From 7be0df0bfcc57e35397ae3395759ccb13056d26f Mon Sep 17 00:00:00 2001 From: cgettys-microsoft <67080058+cgettys-microsoft@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:28:51 -0800 Subject: [PATCH] Use reason = "reason_here" for allow lints (#127) The only reason I didn't do this in the previous PR was the Rust compiler version was slightly too old. Now that the version is 1.84, fix it. --- crates/libs/core/src/client/query_client.rs | 2 +- crates/libs/core/src/client/svc_mgmt_client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/libs/core/src/client/query_client.rs b/crates/libs/core/src/client/query_client.rs index 6b2e564..c2d6773 100644 --- a/crates/libs/core/src/client/query_client.rs +++ b/crates/libs/core/src/client/query_client.rs @@ -4,7 +4,7 @@ // ------------------------------------------------------------ #![cfg_attr( not(feature = "tokio_async"), - allow(unused_imports) // reason = "code configured out" + allow(unused_imports, reason = "code configured out") )] use std::{ffi::c_void, time::Duration}; diff --git a/crates/libs/core/src/client/svc_mgmt_client.rs b/crates/libs/core/src/client/svc_mgmt_client.rs index b5e9b16..18ecc4a 100644 --- a/crates/libs/core/src/client/svc_mgmt_client.rs +++ b/crates/libs/core/src/client/svc_mgmt_client.rs @@ -4,7 +4,7 @@ // ------------------------------------------------------------ #![cfg_attr( not(feature = "tokio_async"), - allow(unused_imports) // reason = "code configured out" + allow(unused_imports, reason = "code configured out") )] use std::{ffi::c_void, time::Duration};