Skip to content

Commit

Permalink
trivial: Fix style
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 29, 2024
1 parent e40d2c2 commit 81dc6f9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub type Address = NativeWord;
pub type CPtrBits = NativeWord;

#[repr(C)]
#[derive(Debug, Clone, PartialEq, Eq, IntoBytes, FromBytes, Immutable, KnownLayout)]
#[derive(Debug, Clone, PartialEq, Eq, FromBytes, IntoBytes, Immutable, KnownLayout)]
struct Head {
static_heap: ZerocopyOptionWordRange,
static_heap_mutex_notification: ZerocopyOptionWord,
Expand All @@ -42,7 +42,7 @@ struct Head {
}

#[repr(C)]
#[derive(Debug, Clone, PartialEq, Eq, IntoBytes, FromBytes, Immutable)]
#[derive(Debug, Clone, PartialEq, Eq, FromBytes, IntoBytes, Immutable)]
struct Thread {
ipc_buffer_addr: ZerocopyWord,
endpoint: ZerocopyOptionWord,
Expand Down Expand Up @@ -102,7 +102,7 @@ impl<'a> RuntimeConfig<'a> {
}

#[repr(transparent)]
#[derive(Debug, Clone, PartialEq, Eq, IntoBytes, FromBytes, Immutable)]
#[derive(Debug, Clone, PartialEq, Eq, FromBytes, IntoBytes, Immutable)]
pub struct RuntimeThreadConfig {
inner: Thread,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl<T: fmt::Display> fmt::Display for InvalidZerocopyOptionTagOr<T> {
//

#[repr(C)]
#[derive(Debug, Clone, PartialEq, Eq, IntoBytes, FromBytes, Immutable, KnownLayout)]
#[derive(Debug, Clone, PartialEq, Eq, FromBytes, IntoBytes, Immutable, KnownLayout)]
pub struct ZerocopyWordRange {
start: ZerocopyWord,
end: ZerocopyWord,
Expand Down Expand Up @@ -93,7 +93,7 @@ impl<T: TryInto<NativeWord> + Copy> TryFrom<&Range<T>> for ZerocopyWordRange {
//

#[repr(C)]
#[derive(Debug, Clone, PartialEq, Eq, IntoBytes, FromBytes, Immutable, KnownLayout)]
#[derive(Debug, Clone, PartialEq, Eq, FromBytes, IntoBytes, Immutable, KnownLayout)]
pub struct ZerocopyOptionWord {
is_present: u8,
value: ZerocopyWord,
Expand Down Expand Up @@ -156,7 +156,7 @@ impl TryFrom<&ZerocopyOptionWord> for Option<ZerocopyWord> {
//

#[repr(C)]
#[derive(Debug, Clone, PartialEq, Eq, IntoBytes, FromBytes, Immutable, KnownLayout)]
#[derive(Debug, Clone, PartialEq, Eq, FromBytes, IntoBytes, Immutable, KnownLayout)]
pub struct ZerocopyOptionWordRange {
is_present: u8,
value: ZerocopyWordRange,
Expand Down
2 changes: 1 addition & 1 deletion crates/sel4-shared-ring-buffer/block-io/types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use zerocopy::{FromBytes, Immutable, IntoBytes};

use sel4_shared_ring_buffer::Descriptor;

#[derive(Copy, Clone, Debug, PartialOrd, Ord, PartialEq, Eq, IntoBytes, FromBytes, Immutable)]
#[derive(Copy, Clone, Debug, PartialOrd, Ord, PartialEq, Eq, FromBytes, IntoBytes, Immutable)]
#[repr(C)]
pub struct BlockIORequest {
status: i32,
Expand Down
2 changes: 1 addition & 1 deletion crates/sel4-shared-ring-buffer/src/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use core::ops::Range;
use zerocopy::{FromBytes, Immutable, IntoBytes};

#[repr(C)]
#[derive(Copy, Clone, Debug, PartialOrd, Ord, PartialEq, Eq, IntoBytes, FromBytes, Immutable)]
#[derive(Copy, Clone, Debug, PartialOrd, Ord, PartialEq, Eq, FromBytes, IntoBytes, Immutable)]
pub struct Descriptor {
encoded_addr: usize,
len: u32,
Expand Down

0 comments on commit 81dc6f9

Please sign in to comment.