core: Comments only -- move FIXME to correct location
This commit is contained in:
parent
a784997750
commit
08109aa0ad
@ -43,8 +43,6 @@ use vec;
|
||||
pub use libc::fclose;
|
||||
pub use os::consts::*;
|
||||
|
||||
// FIXME: move these to str perhaps? #2620
|
||||
|
||||
pub fn close(fd: c_int) -> c_int {
|
||||
unsafe {
|
||||
libc::close(fd)
|
||||
@ -79,6 +77,8 @@ pub fn getcwd() -> Path {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: move these to str perhaps? #2620
|
||||
|
||||
pub fn as_c_charp<T>(s: &str, f: &fn(*c_char) -> T) -> T {
|
||||
str::as_c_str(s, |b| f(b as *c_char))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user