Skip to content

Commit

Permalink
[#54] Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shock-1 committed Jan 2, 2024
1 parent fc7dc90 commit 0b9f0f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions iceoryx2-bb/posix/src/system_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ impl Limit {
pub fn value(&self) -> u64 {
match self {
Limit::MaxPathLength | Limit::MaxFileNameLength => {
let result =
unsafe { posix::pathconf("/".as_ptr() as *const posix::c_char, -(*self as i32)) };
let result = unsafe {
posix::pathconf("/".as_ptr() as *const posix::c_char, -(*self as i32))
};
result.clamp(0, posix::long::MAX) as u64
}
Limit::MaxUnixDomainSocketNameLength => {
Expand Down
7 changes: 6 additions & 1 deletion iceoryx2-pal/posix/src/linux/mqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ pub unsafe fn mq_timedreceive(
crate::internal::mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio, abs_timeout)
}

pub unsafe fn mq_send(mqdes: mqd_t, msg_ptr: *const c_char, msg_len: size_t, msg_prio: uint) -> int {
pub unsafe fn mq_send(
mqdes: mqd_t,
msg_ptr: *const c_char,
msg_len: size_t,
msg_prio: uint,
) -> int {
crate::internal::mq_send(mqdes, msg_ptr, msg_len, msg_prio)
}

Expand Down

0 comments on commit 0b9f0f6

Please sign in to comment.