From ee1f182b29204dfbf482ce921c08de666baff100 Mon Sep 17 00:00:00 2001 From: jmjoy Date: Mon, 13 Nov 2023 11:49:09 +0800 Subject: [PATCH] Lint --- phper/src/functions.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phper/src/functions.rs b/phper/src/functions.rs index c4c6ccf..df407fb 100644 --- a/phper/src/functions.rs +++ b/phper/src/functions.rs @@ -151,9 +151,7 @@ impl FunctionEntry { infos.push(last_arg_info); } - let flags = visibility - .map(|v| v as u32) - .unwrap_or(Visibility::default() as u32); + let flags = visibility.unwrap_or(Visibility::default() as u32); zend_function_entry { fname: name.as_ptr().cast(),