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() } }