From b3719734de6d22f4925d417157397962793f56ab Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Mon, 22 Feb 2021 23:14:06 +0100 Subject: [PATCH] chore: fix clippy warning --- src/generator/x86.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/generator/x86.rs b/src/generator/x86.rs index 11038f5..c951df0 100644 --- a/src/generator/x86.rs +++ b/src/generator/x86.rs @@ -20,11 +20,9 @@ struct Assembly { asm: Vec, } -// We don't need "From", so we can ignore the lint here -#[allow(clippy::from_over_into)] -impl Into for Assembly { - fn into(self) -> String { - self.build() +impl From for String { + fn from(asm: Assembly) -> Self { + asm.build() } }