Skip to content

Commit

Permalink
refactor: use zero-variants enum for types that are RegisterSet (#2395)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored May 6, 2024
1 parent 047d662 commit ac3373b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys/ptrace/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ pub mod regset {

#[derive(Debug, Clone, Copy)]
/// General-purpose registers.
pub struct NT_PRSTATUS;
pub enum NT_PRSTATUS {}

unsafe impl RegisterSet for NT_PRSTATUS {
const VALUE: RegisterSetValue = RegisterSetValue::NT_PRSTATUS;
Expand All @@ -245,7 +245,7 @@ pub mod regset {

#[derive(Debug, Clone, Copy)]
/// Floating-point registers.
pub struct NT_PRFPREG;
pub enum NT_PRFPREG {}

unsafe impl RegisterSet for NT_PRFPREG {
const VALUE: RegisterSetValue = RegisterSetValue::NT_PRFPREG;
Expand Down

0 comments on commit ac3373b

Please sign in to comment.