Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Jan 28, 2024
1 parent e8c9217 commit 534f58c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish_crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
run: rustup component add clippy

- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
run: |
cargo clippy --version
cargo clippy --all-targets --all-features -- -D warnings
- name: Build Rust package
run: cargo build --release --workspace
Expand Down
4 changes: 2 additions & 2 deletions rust/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,14 +458,14 @@ impl Instruction {
utils::shiftr(self.flags, 0, 2).try_into().unwrap()
}
pub fn flags_set_r5900_disasm_as_data(&mut self, value: utils::TrinaryValue) {
self.flags = utils::bitrepack(self.flags, value.try_into().unwrap(), 0, 2);
self.flags = utils::bitrepack(self.flags, value.into(), 0, 2);
}

pub fn flags_get_r5900_use_dollar(&self) -> utils::TrinaryValue {
utils::shiftr(self.flags, 2, 2).try_into().unwrap()
}
pub fn flags_set_r5900_use_dollar(&mut self, value: utils::TrinaryValue) {
self.flags = utils::bitrepack(self.flags, value.try_into().unwrap(), 2, 2);
self.flags = utils::bitrepack(self.flags, value.into(), 2, 2);
}

pub fn instr_id_type_name(&self) -> &'static str {
Expand Down

0 comments on commit 534f58c

Please sign in to comment.