Skip to content

spcasm: remove unneeded pin #763

spcasm: remove unneeded pin

spcasm: remove unneeded pin #763

Triggered via push November 21, 2024 22:26
Status Failure
Total duration 7m 59s
Artifacts

rust.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 2 warnings
it is more idiomatic to use `Option<&T>` instead of `&Option<T>`: src/sema/reference.rs#L658
error: it is more idiomatic to use `Option<&T>` instead of `&Option<T>` --> src/sema/reference.rs:658:2 | 658 | / fn set_current_label( 659 | | &mut self, 660 | | current_label: &Option<Arc<RwLock<Label>>>, | | --------------------------- help: change this to: `Option<&Arc<RwLock<Label>>>` 661 | | source_code: &Arc<AssemblyCode>, 662 | | ) -> Result<(), Box<AssemblyError>>; | |________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_option = note: `-D clippy::ref-option` implied by `-D clippy::pedantic` = help: to override `-D clippy::pedantic` add `#[allow(clippy::ref_option)]`
this `map_or` is redundant: src/sema/instruction.rs#L248
error: this `map_or` is redundant --> src/sema/instruction.rs:248:7 | 248 | || self.second_operand.clone().map_or(false, AddressingMode::has_long_address) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `self.second_operand.clone().is_some_and(AddressingMode::has_long_address)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
this `map_or` is redundant: src/sema/instruction.rs#L247
error: this `map_or` is redundant --> src/sema/instruction.rs:247:3 | 247 | self.first_operand.clone().map_or(false, AddressingMode::has_long_address) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `self.first_operand.clone().is_some_and(AddressingMode::has_long_address)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or = note: `-D clippy::unnecessary-map-or` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::unnecessary_map_or)]`
current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0`: src/directive.rs#L76
error: current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0` --> src/directive.rs:76:48 | 76 | ... segments.directive_parameters.pad_value.get_or_insert_default().size = | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0`: src/directive.rs#L73
error: current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0` --> src/directive.rs:73:49 | 73 | ... segments.directive_parameters.fill_value.get_or_insert_default().size = | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0`: src/directive.rs#L71
error: current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0` --> src/directive.rs:71:48 | 71 | ... segments.directive_parameters.pad_value.get_or_insert_default().value = value.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0`: src/directive.rs#L69
error: current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0` --> src/directive.rs:69:49 | 69 | ... segments.directive_parameters.fill_value.get_or_insert_default().value = value.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv = note: `-D clippy::incompatible-msrv` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::incompatible_msrv)]`
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`: src/brr/mod.rs#L508
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` --> src/brr/mod.rs:508:29 | 508 | for (index, byte) in bytes.into_iter().enumerate() { | ^^^^^^^^^ help: call directly: `iter` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref = note: `-D clippy::into-iter-on-ref` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::into_iter_on_ref)]`
writing `&Vec` instead of `&[_]` involves a new object where a slice will do: src/assembler/directive.rs#L33
error: writing `&Vec` instead of `&[_]` involves a new object where a slice will do --> src/assembler/directive.rs:33:19 | 33 | current_labels: &Vec<Reference>, | ^^^^^^^^^^^^^^^ help: change this to: `&[Reference]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg = note: `-D clippy::ptr-arg` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::ptr_arg)]`
it is more idiomatic to use `Option<&T>` instead of `&Option<T>`: src/sema/reference.rs#L658
error: it is more idiomatic to use `Option<&T>` instead of `&Option<T>` --> src/sema/reference.rs:658:2 | 658 | / fn set_current_label( 659 | | &mut self, 660 | | current_label: &Option<Arc<RwLock<Label>>>, | | --------------------------- help: change this to: `Option<&Arc<RwLock<Label>>>` 661 | | source_code: &Arc<AssemblyCode>, 662 | | ) -> Result<(), Box<AssemblyError>>; | |________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_option = note: `-D clippy::ref-option` implied by `-D clippy::pedantic` = help: to override `-D clippy::pedantic` add `#[allow(clippy::ref_option)]`
this `map_or` is redundant: src/sema/instruction.rs#L248
error: this `map_or` is redundant --> src/sema/instruction.rs:248:7 | 248 | || self.second_operand.clone().map_or(false, AddressingMode::has_long_address) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `self.second_operand.clone().is_some_and(AddressingMode::has_long_address)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
this `map_or` is redundant: src/sema/instruction.rs#L247
error: this `map_or` is redundant --> src/sema/instruction.rs:247:3 | 247 | self.first_operand.clone().map_or(false, AddressingMode::has_long_address) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `self.first_operand.clone().is_some_and(AddressingMode::has_long_address)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or = note: `-D clippy::unnecessary-map-or` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::unnecessary_map_or)]`
current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0`: src/directive.rs#L76
error: current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0` --> src/directive.rs:76:48 | 76 | ... segments.directive_parameters.pad_value.get_or_insert_default().size = | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0`: src/directive.rs#L73
error: current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0` --> src/directive.rs:73:49 | 73 | ... segments.directive_parameters.fill_value.get_or_insert_default().size = | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0`: src/directive.rs#L71
error: current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0` --> src/directive.rs:71:48 | 71 | ... segments.directive_parameters.pad_value.get_or_insert_default().value = value.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0`: src/directive.rs#L69
error: current MSRV (Minimum Supported Rust Version) is `1.80.0` but this item is stable since `1.83.0` --> src/directive.rs:69:49 | 69 | ... segments.directive_parameters.fill_value.get_or_insert_default().value = value.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv = note: `-D clippy::incompatible-msrv` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::incompatible_msrv)]`
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`: src/brr/mod.rs#L508
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` --> src/brr/mod.rs:508:29 | 508 | for (index, byte) in bytes.into_iter().enumerate() { | ^^^^^^^^^ help: call directly: `iter` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref = note: `-D clippy::into-iter-on-ref` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::into_iter_on_ref)]`
writing `&Vec` instead of `&[_]` involves a new object where a slice will do: src/assembler/directive.rs#L33
error: writing `&Vec` instead of `&[_]` involves a new object where a slice will do --> src/assembler/directive.rs:33:19 | 33 | current_labels: &Vec<Reference>, | ^^^^^^^^^^^^^^^ help: change this to: `&[Reference]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg = note: `-D clippy::ptr-arg` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::ptr_arg)]`
clippy
Clippy had exited with the 101 exit code
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1.0.7. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1.0.7. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/