Skip to content

Commit 6e56e8d

Browse files
committed
style: reformat with the latest rustfmt
1 parent 39a2f94 commit 6e56e8d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

napi/src/value/any.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ impl<'env> NapiAny<'env> {
9090

9191
pub fn as_object(&self) -> NapiResult<NapiObject<'env>> {
9292
match self.value_type()? {
93-
NapiValueType::Object |
94-
NapiValueType::String |
95-
NapiValueType::Function => {
93+
NapiValueType::Object
94+
| NapiValueType::String
95+
| NapiValueType::Function => {
9696
Ok(NapiObject::construct(self.env(), self.as_sys_value()))
9797
}
9898
_ => Err(NapiError::type_error(

napi/src/value/string.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ impl<'env> NapiString<'env> {
7272
*mut U,
7373
usize,
7474
*mut usize,
75-
)
76-
-> sys::napi_status,
75+
) -> sys::napi_status,
7776
) -> NapiResult<Vec<T>>
7877
where
7978
T: Default + Copy,

0 commit comments

Comments
 (0)