mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
clippy fix
This commit is contained in:
parent
bb3eed6ae7
commit
48bf8681bc
1 changed files with 4 additions and 4 deletions
|
@ -63,10 +63,10 @@ impl<'a> ExpectMemory<'a> {
|
|||
if libc::fstat(shared_fd, &mut stat) == -1 {
|
||||
internal_error!("failed to stat shared file, does it exist?");
|
||||
}
|
||||
if stat.st_size < Self::SHM_SIZE as _ {
|
||||
if libc::ftruncate(shared_fd, Self::SHM_SIZE as _) == -1 {
|
||||
internal_error!("failed to truncate shared file, are the permissions wrong?");
|
||||
}
|
||||
if stat.st_size < Self::SHM_SIZE as _
|
||||
&& libc::ftruncate(shared_fd, Self::SHM_SIZE as _) == -1
|
||||
{
|
||||
internal_error!("failed to truncate shared file, are the permissions wrong?");
|
||||
}
|
||||
|
||||
let ptr = libc::mmap(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue