Skip to content

Commit 47c4e63

Browse files
committed
Fmt
1 parent a5e26bb commit 47c4e63

File tree

21 files changed

+27
-33
lines changed

21 files changed

+27
-33
lines changed

examples/complex/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use phper::{
1212
arrays::ZArray,
1313
classes::{ClassEntity, Visibility},
1414
functions::Argument,
15-
ini::{ini_get, Policy},
15+
ini::{Policy, ini_get},
1616
modules::Module,
1717
objects::StateObj,
1818
php_get_module,

examples/http-client/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use phper::{
1212
classes::{ClassEntity, ClassEntry},
13-
errors::{exception_class, Throwable},
13+
errors::{Throwable, exception_class},
1414
};
1515

1616
/// The exception class name of extension.

examples/http-server/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use phper::{
1212
classes::{ClassEntity, ClassEntry},
13-
errors::{exception_class, Throwable},
13+
errors::{Throwable, exception_class},
1414
};
1515
use std::error::Error;
1616

examples/http-server/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
use crate::{errors::HttpServerError, request::RequestClass, response::ResponseClass};
1212
use axum::{
13+
Router,
1314
body::{self, Body},
1415
http::{Request, Response, StatusCode},
1516
routing::any,
16-
Router,
1717
};
1818
use phper::{
1919
alloc::ToRefOwned,

phper-alloc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mod macros;
1818
use phper_sys::*;
1919
use std::{
2020
borrow::Borrow,
21-
mem::{size_of, ManuallyDrop},
21+
mem::{ManuallyDrop, size_of},
2222
ops::{Deref, DerefMut},
2323
};
2424

phper-alloc/src/macros.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,5 @@
1717
/// ```
1818
#[macro_export]
1919
macro_rules! ebox {
20-
($arg:tt) => {{
21-
$crate::EBox::new($arg)
22-
}};
20+
($arg:tt) => {{ $crate::EBox::new($arg) }};
2321
}

phper-macros/src/inner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use proc_macro::TokenStream;
1212
use quote::quote;
13-
use syn::{parse_macro_input, ItemFn, Visibility};
13+
use syn::{ItemFn, Visibility, parse_macro_input};
1414

1515
pub(crate) fn php_get_module(_attr: TokenStream, input: TokenStream) -> TokenStream {
1616
let input = parse_macro_input!(input as ItemFn);

phper-test/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
use crate::context::Context;
1414
use std::{
15-
panic::{catch_unwind, resume_unwind, UnwindSafe},
15+
panic::{UnwindSafe, catch_unwind, resume_unwind},
1616
path::Path,
1717
process::{Child, Output},
1818
};

phper-test/src/fpm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
//! Test tools for php fpm program.
1212
use crate::{context::Context, utils::spawn_command};
1313
use fastcgi_client::{Client, Params, Request};
14-
use libc::{atexit, kill, pid_t, SIGTERM};
14+
use libc::{SIGTERM, atexit, kill, pid_t};
1515
use once_cell::sync::OnceCell;
1616
use std::{
1717
fs,
18-
mem::{forget, ManuallyDrop},
18+
mem::{ManuallyDrop, forget},
1919
path::{Path, PathBuf},
2020
process::Child,
2121
sync::Mutex,

phper/src/classes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ use crate::{
2525
use std::{
2626
any::Any,
2727
cell::RefCell,
28-
ffi::{c_char, c_void, CString},
28+
ffi::{CString, c_char, c_void},
2929
fmt::Debug,
3030
marker::PhantomData,
31-
mem::{replace, size_of, zeroed, ManuallyDrop},
31+
mem::{ManuallyDrop, replace, size_of, zeroed},
3232
os::raw::c_int,
3333
ptr::null_mut,
3434
rc::Rc,

0 commit comments

Comments
 (0)