Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsohn committed Dec 10, 2023
1 parent 6b08e37 commit 7594282
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ macro_rules! zero_trailing_setter {
#[doc = "This method panics if the given value is not"]
#[doc = $expect]
#[doc = "."]
$vis fn set(&mut $self_,value:$ty) -> &mut Self {
$vis fn $method(&mut $self_,value:$ty) -> &mut Self {
use bit_field::BitField;

assert!(value.trailing_zeros() >= $start, "The {} must be {}.", $name, $expect);
Expand Down
3 changes: 0 additions & 3 deletions src/ring/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ impl EventRingSegmentTableEntry {
}
}
}

impl EventRingSegmentTableEntry {
rw_double_zero_trailing!(
pub, self,
Expand All @@ -84,7 +83,6 @@ impl EventRingSegmentTableEntry {
self.ring_segment_base_address() + (self.ring_segment_size() as u64)
}
}

impl Index<usize> for EventRingSegmentTableEntry {
type Output = event::TRB;

Expand All @@ -94,7 +92,6 @@ impl Index<usize> for EventRingSegmentTableEntry {
&slice[index]
}
}

impl IndexMut<usize> for EventRingSegmentTableEntry {
fn index_mut(&mut self, index: usize) -> &mut Self::Output {
let slice = self.as_mut_slice();
Expand Down
3 changes: 3 additions & 0 deletions src/ring/trb/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ allowed_trb!("Transfer TRB", {
/// No Op Transfer TRB
NoOp = 8,
});
impl TRB {
ro_bit!(pub, self, self.0[3]; 4, chain_bit, "Chain");
}

impl Normal {
impl_data_buffer_pointer!();
Expand Down

0 comments on commit 7594282

Please sign in to comment.