Skip to content

Commit 514a48f

Browse files
kakserpomclaude
andcommitted
fix(example): resolve clippy warnings in callable_channel example
- Add allow attributes for cast_sign_loss, cast_possible_wrap, missing_errors_doc, and redundant_closure_for_method_calls - Change values.iter() to values for explicit_iter_loop lint Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent cf21a4e commit 514a48f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

examples/callable_channel.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@
2929
//! unregister_callback($closureId);
3030
//! ```
3131
32-
#![allow(missing_docs, clippy::must_use_candidate, clippy::missing_safety_doc)]
32+
#![allow(
33+
missing_docs,
34+
clippy::must_use_candidate,
35+
clippy::missing_safety_doc,
36+
clippy::missing_errors_doc,
37+
clippy::cast_sign_loss,
38+
clippy::cast_possible_wrap,
39+
clippy::redundant_closure_for_method_calls
40+
)]
3341
#![cfg_attr(windows, feature(abi_vectorcall))]
3442

3543
use std::sync::Arc;
@@ -207,7 +215,7 @@ pub fn parallel_closure_calls(closure_id: i64, values: &ZendHashTable) -> PhpRes
207215
let mut handles = Vec::new();
208216

209217
// Spawn a thread for each value
210-
for (_, val) in values.iter() {
218+
for (_, val) in values {
211219
if let Some(serialized) = SerializedValue::from_zval(val) {
212220
let channel_clone = channel.clone();
213221
let handle =

0 commit comments

Comments
 (0)