style: clippy fix

This commit is contained in:
LongYinan 2021-11-23 14:49:24 +08:00
parent 43d21c51d2
commit e4ca46f32b
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -17,6 +17,8 @@ impl<
B: TypeName + FromNapiValue + ToNapiValue + NapiRaw,
> Either<A, B>
{
/// # Safety
/// Backward compatible with `Either` in **v1**
pub unsafe fn raw(&self) -> napi_sys::napi_value {
match &self {
Self::A(a) => a.raw(),