Skip to content
This repository was archived by the owner on May 11, 2023. It is now read-only.

Commit 8d0a4d1

Browse files
committed
zm: Workaround a clippy false positive
rust-lang/rust-clippy#10577
1 parent 8d37b16 commit 8d0a4d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zbus_macros/src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ fn gen_reply_for_variant(
236236
.unwrap_or_else(|| ::std::string::ToString::to_string(#error_field))
237237
}]
238238
} else {
239+
// FIXME: Workaround for https://github.com/rust-lang/rust-clippy/issues/10577
240+
#[allow(clippy::redundant_clone)]
239241
in_fields.clone()
240242
};
241243

0 commit comments

Comments
 (0)