Add clippy/fmt checks

This commit is contained in:
0xd4d 2020-11-29 13:07:11 +01:00
parent b8f1a84b77
commit 24e1fe78bf
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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<u64> {
None
}