Skip to content

Commit 961b948

Browse files
committed
Fmt
1 parent 2c5bd2a commit 961b948

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/error.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,12 @@ impl Display for Error {
105105
Error::Exception(e) => write!(f, "Exception was thrown: {e:?}"),
106106
Error::StreamWrapperRegistrationFailure => {
107107
write!(f, "A failure occurred while registering the stream wrapper")
108-
},
108+
}
109109
Error::StreamWrapperUnregistrationFailure => {
110-
write!(f, "A failure occurred while unregistering the stream wrapper")
110+
write!(
111+
f,
112+
"A failure occurred while unregistering the stream wrapper"
113+
)
111114
}
112115
}
113116
}

src/zend/streams.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
use std::ptr::{self, NonNull};
22

33
use crate::{
4+
error::Error,
45
ffi::{
56
php_register_url_stream_wrapper, php_register_url_stream_wrapper_volatile, php_stream,
67
php_stream_context, php_stream_locate_url_wrapper, php_stream_wrapper,
78
php_stream_wrapper_ops, php_unregister_url_stream_wrapper,
89
php_unregister_url_stream_wrapper_volatile, zend_string,
910
},
10-
types::ZendStr, error::Error,
11+
types::ZendStr,
1112
};
1213

1314
pub type StreamWrapper = php_stream_wrapper;

0 commit comments

Comments
 (0)