Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjoy committed Nov 13, 2023
1 parent 72c2a91 commit ee1f182
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions phper/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit ee1f182

Please sign in to comment.