Skip to content

Commit

Permalink
Merge pull request #102 from sarutak/cleanup-meanengless-code
Browse files Browse the repository at this point in the history
Cleanup meaningless code.
  • Loading branch information
larrydewey authored Aug 25, 2023
2 parents b33ecb6 + ee05c0b commit 2150807
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
args: --all-features --all-targets -- -D clippy::all -D unused_imports -Dwarnings

readme:
name: cargo readme
Expand Down
4 changes: 2 additions & 2 deletions src/firmware/linux/host/types/snp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ mod test {
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 7, 7, 7, 7, 7, 7,
];
let mut data: Vec<UAPI::CertTableEntry> = build_vec_uapi_cert_table();
let actual: Vec<u8> = CertTableEntry::uapi_to_vec_bytes(&mut data).unwrap();
let data: Vec<UAPI::CertTableEntry> = build_vec_uapi_cert_table();
let actual: Vec<u8> = CertTableEntry::uapi_to_vec_bytes(&data).unwrap();
assert_eq!(expected, actual);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn sev() {
vcpu.set_sregs(&sregs).unwrap();

let mut regs = vcpu.get_regs().unwrap();
regs.rip = std::ptr::null() as *const u64 as u64;
regs.rip = std::ptr::null::<u64>() as u64;
regs.rflags = 2;
vcpu.set_regs(&regs).unwrap();

Expand Down
2 changes: 1 addition & 1 deletion tests/snp_launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn snp() {

let update = Update::new(
mem_region.guest_phys_addr >> 12,
address_space.as_ref(),
address_space,
false,
PageType::Normal,
(dp, dp, dp),
Expand Down

0 comments on commit 2150807

Please sign in to comment.