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,11 +63,11 @@ impl<'a> ExpectMemory<'a> {
|
||||||
if libc::fstat(shared_fd, &mut stat) == -1 {
|
if libc::fstat(shared_fd, &mut stat) == -1 {
|
||||||
internal_error!("failed to stat shared file, does it exist?");
|
internal_error!("failed to stat shared file, does it exist?");
|
||||||
}
|
}
|
||||||
if stat.st_size < Self::SHM_SIZE as _ {
|
if stat.st_size < Self::SHM_SIZE as _
|
||||||
if libc::ftruncate(shared_fd, Self::SHM_SIZE as _) == -1 {
|
&& libc::ftruncate(shared_fd, Self::SHM_SIZE as _) == -1
|
||||||
|
{
|
||||||
internal_error!("failed to truncate shared file, are the permissions wrong?");
|
internal_error!("failed to truncate shared file, are the permissions wrong?");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
let ptr = libc::mmap(
|
let ptr = libc::mmap(
|
||||||
std::ptr::null_mut(),
|
std::ptr::null_mut(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue