as_ptr visibility fix

This commit is contained in:
orhanbalci 2016-05-27 22:30:28 +03:00
parent 58e59810ac
commit 50b63304d4

View File

@ -86,7 +86,7 @@ impl<'a> ImStr<'a> {
bytes: Cow::Borrowed(bytes)
}
}
fn as_ptr(&self) -> *const c_char { self.bytes.as_ptr() as *const c_char }
pub fn as_ptr(&self) -> *const c_char { self.bytes.as_ptr() as *const c_char }
}
impl<'a> From<&'a str> for ImStr<'a> {