Skip to content

Commit 35e01e0

Browse files
nikomatsakisbrson
authored andcommitted
remove unnecessary && from various file routines
1 parent af99b4b commit 35e01e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/posix_fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
native "c-stack-cdecl" mod rustrt {
3-
fn rust_list_files(&&path: str) -> [str];
3+
fn rust_list_files(path: str) -> [str];
44
}
55

66
fn list_dir(path: str) -> [str] {

src/lib/win32_fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22

33
native "c-stack-cdecl" mod rustrt {
4-
fn rust_list_files(&&path: str) -> [str];
5-
fn rust_file_is_dir(&&path: str) -> int;
4+
fn rust_list_files(path: str) -> [str];
5+
fn rust_file_is_dir(path: str) -> int;
66
}
77

88
fn list_dir(path: str) -> [str] {

0 commit comments

Comments
 (0)