We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a2f94 commit 6e56e8dCopy full SHA for 6e56e8d
napi/src/value/any.rs
@@ -90,9 +90,9 @@ impl<'env> NapiAny<'env> {
90
91
pub fn as_object(&self) -> NapiResult<NapiObject<'env>> {
92
match self.value_type()? {
93
- NapiValueType::Object |
94
- NapiValueType::String |
95
- NapiValueType::Function => {
+ NapiValueType::Object
+ | NapiValueType::String
+ | NapiValueType::Function => {
96
Ok(NapiObject::construct(self.env(), self.as_sys_value()))
97
}
98
_ => Err(NapiError::type_error(
napi/src/value/string.rs
@@ -72,8 +72,7 @@ impl<'env> NapiString<'env> {
72
*mut U,
73
usize,
74
*mut usize,
75
- )
76
- -> sys::napi_status,
+ ) -> sys::napi_status,
77
) -> NapiResult<Vec<T>>
78
where
79
T: Default + Copy,
0 commit comments