mirror of https://github.com/icedland/iced.git
Add clippy/fmt checks
This commit is contained in:
parent
b8f1a84b77
commit
24e1fe78bf
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue