c_str: replace .with_ref with .as_ptr throughout the codebase.

This commit is contained in:
Huon Wilson
2014-06-14 22:50:07 +10:00
parent 2c9aada10c
commit d4d4bc4fe9
16 changed files with 148 additions and 154 deletions

View File

@@ -278,7 +278,7 @@ impl Drop for UnixListener {
// careful to unlink the path before we close the file descriptor to
// prevent races where we unlink someone else's path.
unsafe {
let _ = libc::unlink(self.path.with_ref(|p| p));
let _ = libc::unlink(self.path.as_ptr());
}
}
}