Browse Source

chore: fix clippy warning

master
Garrit Franke 3 years ago
parent
commit
b3719734de
  1. 8
      src/generator/x86.rs

8
src/generator/x86.rs

@ -20,11 +20,9 @@ struct Assembly {
asm: Vec<String>, asm: Vec<String>,
} }
// We don't need "From", so we can ignore the lint here impl From<Assembly> for String {
#[allow(clippy::from_over_into)] fn from(asm: Assembly) -> Self {
impl Into<String> for Assembly { asm.build()
fn into(self) -> String {
self.build()
} }
} }

Loading…
Cancel
Save