Skip to content

Commit 6472b2f

Browse files
committed
Remove filler line
1 parent 67314fb commit 6472b2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy.toml

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
doc-valid-idents = ["PnP", ".."]
2+
accept-comment-above-statement = true
3+
accept-comment-above-attributes = true

driver/wdf-kmdf/src/lib.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,8 @@ pub mod object {
446446
let handle = handle.as_handle();
447447

448448
// SAFETY: `handle` validity assured by `AsObjectHandle`, and context info validity assured by `IntoContextSpace`
449-
let context_space = unsafe {
450-
// filler line as a work-around for https://github.com/rust-lang/rust-clippy/issues/10832
451-
crate::raw::WdfObjectGetTypedContextWorker(handle, T::CONTEXT_INFO)
452-
};
449+
let context_space =
450+
unsafe { crate::raw::WdfObjectGetTypedContextWorker(handle, T::CONTEXT_INFO) };
453451

454452
if context_space.is_null() {
455453
// `context_space` is only NULL if `T` doesnt't have a context on the object

0 commit comments

Comments
 (0)