Skip to content

Commit 0cbc2ab

Browse files
committed
[Rust] Fix warnings about names that are not snake case
The names can simply be omitted since they are only mentioned in the declaration of a function pointer.
1 parent b6d0ef9 commit 0cbc2ab

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

rust/src/interaction/handler.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,9 @@ pub struct InteractionHandlerTask {
272272
ctxt: *mut c_void,
273273
task: Option<
274274
unsafe extern "C" fn(
275-
taskCtxt: *mut c_void,
276-
progress: Option<
277-
unsafe extern "C" fn(progressCtxt: *mut c_void, cur: usize, max: usize) -> bool,
278-
>,
279-
progressCtxt: *mut c_void,
275+
*mut c_void,
276+
progress: Option<unsafe extern "C" fn(*mut c_void, cur: usize, max: usize) -> bool>,
277+
*mut c_void,
280278
),
281279
>,
282280
}

0 commit comments

Comments
 (0)