load_self() needs to be public

This commit is contained in:
Michael Neumann 2014-12-19 22:19:37 +01:00
parent 25c1bfe175
commit 4c3a8f17cc

View file

@ -199,7 +199,7 @@ pub fn load_self() -> Option<Vec<u8>> {
}
#[cfg(target_os = "dragonfly")]
fn load_self() -> Option<Vec<u8>> {
pub fn load_self() -> Option<Vec<u8>> {
use std::io;
match io::fs::readlink(&Path::new("/proc/curproc/file")) {