Skip to content

Commit a289272

Browse files
committed
clippy
1 parent 8447e83 commit a289272

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phper/src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ impl ZFunc {
650650
/// Get the type of the function (ZEND_USER_FUNCTION,
651651
/// ZEND_INTERNAL_FUNCTION, etc).
652652
pub fn get_type(&self) -> u8 {
653-
unsafe { self.inner.type_ as u8 }
653+
unsafe { self.inner.type_ }
654654
}
655655

656656
/// For a user function or eval'd code, get the filename from op_array.

phper/src/values.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl ExecuteData {
139139
ZEND_USER_FUNCTION | ZEND_EVAL_CODE => {
140140
let opline = self.inner.opline;
141141
if !opline.is_null() {
142-
Some((*opline).lineno as u32)
142+
Some((*opline).lineno)
143143
} else {
144144
None
145145
}

0 commit comments

Comments
 (0)