Skip to content

Commit

Permalink
trivial: update deps, clean lints
Browse files Browse the repository at this point in the history
rust-lang/rust#120107 was merged which
cleaned up a lot of dead code lints for tuple-structs that were
`repr(transparent)`.  This cleans up a few small remaining lints
that used values of those types in enum variants.

Signed-off-by: Dan Cross <cross@gajendra.net>
  • Loading branch information
Dan Cross committed Jan 22, 2024
1 parent 0f572bb commit c299a0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions x86_64/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,24 @@ impl core::fmt::Debug for PTE {

trait Entry {}

#[repr(u64)]
enum L4E {
#[allow(dead_code)]
Next(PTE),
}
impl Entry for L4E {}

#[repr(u64)]
enum L3E {
#[allow(dead_code)]
Next(PTE),
Page(PF1G),
}
impl Entry for L3E {}

#[repr(u64)]
enum L2E {
#[allow(dead_code)]
Next(PTE),
Page(PF2M),
}
Expand Down

0 comments on commit c299a0b

Please sign in to comment.