Skip to content

Commit 32967fc

Browse files
committed
Fix new clippy warnings
1 parent 2e97e1f commit 32967fc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

crates/header-translator/src/data/macros.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,11 @@ macro_rules! __data_methods {
160160

161161
$($rest:tt)*
162162
) => {
163+
#[allow(unused_mut)]
163164
let mut method_data = $data.methods.entry("init".to_string()).or_default();
164165
method_data.unsafe_ = false;
165166

167+
#[allow(unused_mut)]
166168
let mut method_data = $data.methods.entry("new".to_string()).or_default();
167169
method_data.unsafe_ = false;
168170

@@ -195,6 +197,7 @@ macro_rules! __data_methods {
195197

196198
$($rest:tt)*
197199
) => {
200+
#[allow(unused_mut)]
198201
let mut method_data = $data.methods.entry(stringify!($name).to_string()).or_default();
199202

200203
method_data.unsafe_ = false;
@@ -228,6 +231,7 @@ macro_rules! __data_methods {
228231

229232
$($rest:tt)*
230233
) => {
234+
#[allow(unused_mut)]
231235
let mut method_data = $data.methods.entry(stringify!($name).to_string()).or_default();
232236

233237
method_data.mutating = Some(true);
@@ -261,6 +265,7 @@ macro_rules! __data_methods {
261265

262266
$($rest:tt)*
263267
) => {
268+
#[allow(unused_mut)]
264269
let mut method_data = $data.methods.entry(stringify!($name).to_string()).or_default();
265270

266271
method_data.unsafe_ = false;

crates/objc2/src/macros/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ macro_rules! __sel_inner {
635635

636636
#[doc(hidden)]
637637
#[macro_export]
638-
#[cfg(all(feature = "unstable-static-sel-inlined"))]
638+
#[cfg(feature = "unstable-static-sel-inlined")]
639639
macro_rules! __sel_inner {
640640
($data:expr, $hash:expr) => {{
641641
$crate::__inner_statics!(@image_info $hash);
@@ -670,7 +670,7 @@ macro_rules! __class_inner {
670670

671671
#[doc(hidden)]
672672
#[macro_export]
673-
#[cfg(all(feature = "unstable-static-class-inlined"))]
673+
#[cfg(feature = "unstable-static-class-inlined")]
674674
macro_rules! __class_inner {
675675
($name:expr, $hash:expr,) => {{
676676
$crate::__inner_statics!(@image_info $hash);

0 commit comments

Comments
 (0)