diff --git a/cros_async/src/mem.rs b/cros_async/src/mem.rs index f90df470d8..bf612b7dee 100644 --- a/cros_async/src/mem.rs +++ b/cros_async/src/mem.rs @@ -68,9 +68,9 @@ impl From> for VecIoWrapper { } } -impl Into> for VecIoWrapper { - fn into(self) -> Vec { - self.inner.into() +impl From for Vec { + fn from(v: VecIoWrapper) -> Vec { + v.inner.into() } } diff --git a/kernel_cmdline/src/kernel_cmdline.rs b/kernel_cmdline/src/kernel_cmdline.rs index c836e12623..ad040ecdda 100644 --- a/kernel_cmdline/src/kernel_cmdline.rs +++ b/kernel_cmdline/src/kernel_cmdline.rs @@ -139,9 +139,9 @@ impl Cmdline { } } -impl Into> for Cmdline { - fn into(self) -> Vec { - self.line.into_bytes() +impl From for Vec { + fn from(c: Cmdline) -> Vec { + c.line.into_bytes() } }