Skip to content

Commit 006da31

Browse files
committed
cs-fix
1 parent 5ffaf73 commit 006da31

4 files changed

Lines changed: 16 additions & 14 deletions

File tree

crates/macros/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Copyright 2023-2024 Daniil Gentili
2-
//
2+
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
6-
//
6+
//
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

examples/reqwest/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pub extern "C" fn request_shutdown(_type: i32, _module_number: i32) -> i32 {
2424

2525
#[php_module]
2626
pub fn get_module(module: ModuleBuilder) -> ModuleBuilder {
27-
module.request_shutdown_function(request_shutdown)
27+
module
28+
.request_shutdown_function(request_shutdown)
2829
.class::<Client>()
2930
}

src/event_loop.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
// Copyright 2023-2024 Daniil Gentili
2-
//
2+
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
6-
//
6+
//
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

1515
use crate::borrow_unchecked::borrow_unchecked;
16-
use ext_php_rs::{boxed::ZBox, call_user_func, prelude::*, types::ZendHashTable, zend::Function};
16+
use ext_php_rs::types::Zval;
17+
use ext_php_rs::{call_user_func, prelude::*, zend::Function};
1718
use lazy_static::lazy_static;
1819
use std::{
1920
cell::RefCell,
@@ -23,7 +24,6 @@ use std::{
2324
os::fd::{AsRawFd, FromRawFd, RawFd},
2425
sync::mpsc::{channel, Receiver, Sender},
2526
};
26-
use ext_php_rs::types::Zval;
2727
use tokio::runtime::Runtime;
2828

2929
lazy_static! {
@@ -46,8 +46,8 @@ fn sys_pipe() -> io::Result<(RawFd, RawFd)> {
4646

4747
#[cfg(any(target_os = "macos"))]
4848
fn set_cloexec(fd: RawFd) -> io::Result<()> {
49-
use libc::{F_SETFD, FD_CLOEXEC, F_GETFD};
5049
use libc::fcntl;
50+
use libc::{FD_CLOEXEC, F_GETFD, F_SETFD};
5151

5252
let flags = unsafe { fcntl(fd, F_GETFD, 0) };
5353
if flags == -1 {
@@ -177,7 +177,8 @@ impl EventLoop {
177177
while let Ok(1) = c.notify_receiver.read(&mut c.dummy) {}
178178

179179
for mut suspesion in c.receiver.try_iter() {
180-
suspesion.0
180+
suspesion
181+
.0
181182
.object_mut()
182183
.unwrap()
183184
.try_call_method("resume", vec![])?;

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Copyright 2023-2024 Daniil Gentili
2-
//
2+
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
6-
//
6+
//
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

0 commit comments

Comments
 (0)