diff --git a/napi/src/js_values/either.rs b/napi/src/js_values/either.rs index 93ee7fb6..d781372e 100644 --- a/napi/src/js_values/either.rs +++ b/napi/src/js_values/either.rs @@ -6,9 +6,9 @@ pub enum Either { B(B), } -impl Into> for Either { - fn into(self) -> Option { - match self { +impl From> for Option { + fn from(value: Either) -> Option { + match value { Either::A(v) => Some(v), Either::B(_) => None, }