Fix formatiing issues

This commit is contained in:
Mateusz Tabaka
2020-09-30 11:34:33 +02:00
parent 687f4d4923
commit 79643c293b
2 changed files with 4 additions and 3 deletions
-1
View File
@@ -64,4 +64,3 @@ fmt:
script:
- rustup component add rustfmt-preview
- ./fmt.sh -- --check
allow_failure: true
+4 -2
View File
@@ -12,7 +12,7 @@ use crate::{
dirent::dirent,
errno::{EINVAL, EIO, ENOMEM, EPERM, ERANGE},
fcntl,
sys_mman::{PROT_READ, PROT_WRITE, MAP_ANONYMOUS},
sys_mman::{MAP_ANONYMOUS, PROT_READ, PROT_WRITE},
sys_random,
sys_resource::{rlimit, RLIM_INFINITY},
sys_stat::stat,
@@ -112,7 +112,9 @@ impl Pal for Sys {
0,
0,
);
if allocated == !0 as *mut c_void /* MAP_FAILED */ {
if allocated == !0 as *mut c_void
/* MAP_FAILED */
{
return !0 as *mut c_void;
}