Skip to content

Commit 88621bc

Browse files
committed
Remove a few more 'mutable' words
Didn't see these before because they live in non-Linux code.
1 parent fe29d24 commit 88621bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/macos_OS.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn dylib_filename(str base) -> str {
6363

6464
fn pipe() -> tup(int, int) {
6565
let vec[mutable int] fds = vec(mutable 0, 0);
66-
assert (OS.libc.pipe(Vec.buf[mutable int](fds)) == 0);
66+
assert (OS.libc.pipe(Vec.buf(fds)) == 0);
6767
ret tup(fds.(0), fds.(1));
6868
}
6969

@@ -73,7 +73,7 @@ fn fd_FILE(int fd) -> libc.FILE {
7373

7474
fn waitpid(int pid) -> int {
7575
let vec[mutable int] status = vec(mutable 0);
76-
assert (OS.libc.waitpid(pid, Vec.buf[mutable int](status), 0) != -1);
76+
assert (OS.libc.waitpid(pid, Vec.buf(status), 0) != -1);
7777
ret status.(0);
7878
}
7979

src/lib/win32_OS.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn dylib_filename(str base) -> str {
5353

5454
fn pipe() -> tup(int, int) {
5555
let vec[mutable int] fds = vec(mutable 0, 0);
56-
assert (OS.libc._pipe(Vec.buf[mutable int](fds), 1024u,
56+
assert (OS.libc._pipe(Vec.buf(fds), 1024u,
5757
libc_constants.O_BINARY()) == 0);
5858
ret tup(fds.(0), fds.(1));
5959
}

0 commit comments

Comments
 (0)