mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2024-12-27 12:16:07 +00:00
clippy
This commit is contained in:
parent
e8c9217a82
commit
534f58cc7c
4
.github/workflows/publish_crate.yml
vendored
4
.github/workflows/publish_crate.yml
vendored
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user