Make clippy happy

This commit is contained in:
Niki4tap 2022-12-18 19:43:26 +03:00
parent b1ca307168
commit 9b2fc8e2a2

View file

@ -40,7 +40,7 @@ fn lint_expr(cx: &LateContext<'_>, expr: &Expr<'_>) {
"function pointer assumed to be nullable, even though it isn't", "function pointer assumed to be nullable, even though it isn't",
None, None,
"try wrapping your function pointer type in `Option<T>` instead, and using `is_none` to check for null pointer value", "try wrapping your function pointer type in `Option<T>` instead, and using `is_none` to check for null pointer value",
) );
} }
fn is_fn_ptr_cast(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { fn is_fn_ptr_cast(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {