From 24e1fe78bf7c14628fd207b9f47075b8f1118a3d Mon Sep 17 00:00:00 2001 From: 0xd4d Date: Sun, 29 Nov 2020 13:07:11 +0100 Subject: [PATCH] Add clippy/fmt checks --- build/build-python | 6 ++++++ src/rust/iced-x86-py/src/instruction.rs | 1 + 2 files changed, 7 insertions(+) diff --git a/build/build-python b/build/build-python index 5df88f591..9a97e37f5 100755 --- a/build/build-python +++ b/build/build-python @@ -97,6 +97,12 @@ misc_tests() { curr_dir=$(pwd) cd "$pysrc_dir" + echo "==== CLIPPY RELEASE ====" + cargo clippy --color always --release + + echo "==== FORMAT CHECK ====" + cargo fmt -- --color always --check + echo "mypy" mypy --strict iced_x86 diff --git a/src/rust/iced-x86-py/src/instruction.rs b/src/rust/iced-x86-py/src/instruction.rs index 33408354e..23113d2eb 100644 --- a/src/rust/iced-x86-py/src/instruction.rs +++ b/src/rust/iced-x86-py/src/instruction.rs @@ -1486,6 +1486,7 @@ impl Instruction { /// /// #TODO: Add an example here #[text_signature = "($self, operand, element_index, /)"] + #[allow(clippy::unused_self)] //TODO: fn try_virtual_address(&self, _operand: u32, _element_index: usize) -> Option { None }