Skip to content

Commit 9c5d172

Browse files
Merge pull request #152 from striezel-stash/make-clippy-happy
fix causes of some clippy warnings
2 parents 8f1cfec + b192841 commit 9c5d172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builders/module.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ impl ModuleBuilder {
5656
module: ModuleEntry {
5757
size: mem::size_of::<ModuleEntry>() as u16,
5858
zend_api: ZEND_MODULE_API_NO,
59-
zend_debug: if PHP_DEBUG { 1 } else { 0 },
60-
zts: if PHP_ZTS { 1 } else { 0 },
59+
zend_debug: u8::from(PHP_DEBUG),
60+
zts: u8::from(PHP_ZTS),
6161
ini_entry: ptr::null(),
6262
deps: ptr::null(),
6363
name: ptr::null(),

0 commit comments

Comments
 (0)