Skip to content

Commit ee5c3e1

Browse files
committed
Cleanup
1 parent 751d4f4 commit ee5c3e1

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

crates/macros/src/method.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ pub fn parser(
198198
let c = c.as_mut().unwrap();
199199
let idx = c.prepare_resume();
200200

201-
let sender = c.sender.clone();
202-
let mut notifier = c.notify_sender.try_clone().unwrap();
201+
let sender = c._sender.clone();
202+
let mut notifier = c._notify_sender.try_clone().unwrap();
203203

204204
let res = ::ext_php_rs::zend::RUNTIME.spawn(async move {
205205
let res = future.await;

src/builders/module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::{
22
error::Result,
33
ffi::{ext_php_rs_php_build_id, ZEND_MODULE_API_NO},
44
zend::{FunctionEntry, ModuleEntry, request_shutdown, request_startup},
5-
PHP_DEBUG, PHP_ZTS, types::ZendClassObject,
5+
PHP_DEBUG, PHP_ZTS,
66
};
77

88
use std::{ffi::CString, mem, ptr};

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub mod zend;
3636
/// A module typically glob-imported containing the typically required macros
3737
/// and imports.
3838
pub mod prelude {
39-
use crate::boxed::ZBox;
39+
4040
pub use crate::builders::ModuleBuilder;
4141
#[cfg(any(docs, feature = "closure"))]
4242
#[cfg_attr(docs, doc(cfg(feature = "closure")))]

src/zend/fibers.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::boxed::ZBox;
33
use crate::class::{ClassMetadata, RegisteredClass};
44
use crate::prelude::PhpResult;
55
use crate::props::Property;
6-
use crate::types::{ZendHashTable, ZendClassObject, Zval};
6+
use crate::types::{ZendHashTable, ZendClassObject};
77
use crate::zend::Function;
88

99
use std::cell::RefCell;
@@ -34,10 +34,10 @@ fn sys_pipe() -> io::Result<(RawFd, RawFd)> {
3434
pub struct GlobalConnection {
3535
fibers: ZBox<ZendHashTable>,
3636

37-
sender: Sender<u64>,
37+
_sender: Sender<u64>,
3838
receiver: Receiver<u64>,
3939

40-
notify_sender: File,
40+
_notify_sender: File,
4141
notify_receiver: File,
4242

4343
get_current_suspension: Function,
@@ -68,9 +68,9 @@ impl GlobalConnection {
6868

6969
Ok(Self {
7070
fibers: ZendHashTable::new(),
71-
sender: sender,
71+
_sender: sender,
7272
receiver: receiver,
73-
notify_sender: unsafe { File::from_raw_fd(notify_sender) },
73+
_notify_sender: unsafe { File::from_raw_fd(notify_sender) },
7474
notify_receiver: unsafe { File::from_raw_fd(notify_receiver) },
7575
dummy: [0; 1],
7676
get_current_suspension: Function::try_from_method("\\Revolt\\EventLoop", "getSuspension").unwrap(),

src/zend/globals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::ops::{Deref, DerefMut};
44

55
use parking_lot::{const_rwlock, RwLock, RwLockReadGuard, RwLockWriteGuard};
66

7-
use crate::binary_slice::{BinarySlice, PackSlice};
7+
88
use crate::boxed::ZBox;
99
use crate::ffi::{_zend_executor_globals, ext_php_rs_executor_globals};
1010

0 commit comments

Comments
 (0)