Skip to content

Commit 0b5f8e3

Browse files
committed
Fix clippy.
1 parent 9a4e842 commit 0b5f8e3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

phper/src/arrays.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub struct Array {
3131
}
3232

3333
impl Array {
34+
#[allow(clippy::useless_conversion)]
3435
pub fn new() -> EBox<Self> {
3536
unsafe {
3637
let mut array = EBox::new(zeroed::<Array>());

phper/src/objects.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ impl<T: 'static> Object<T> {
7777
self.get_mut_property(name).duplicate()
7878
}
7979

80+
#[allow(clippy::useless_conversion)]
8081
fn get_mut_property(&mut self, name: impl AsRef<str>) -> &mut Val {
8182
let name = name.as_ref();
8283

0 commit comments

Comments
 (0)