mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
strdup_uniq doesn't have to be pub.
This commit is contained in:
+1
-2
@@ -1376,9 +1376,8 @@ pub unsafe fn from_buf_len(buf: *u8, len: uint) -> ~str {
|
||||
|
||||
#[lang="strdup_uniq"]
|
||||
#[cfg(not(test))]
|
||||
#[allow(missing_doc)]
|
||||
#[inline]
|
||||
pub unsafe fn strdup_uniq(ptr: *u8, len: uint) -> ~str {
|
||||
unsafe fn strdup_uniq(ptr: *u8, len: uint) -> ~str {
|
||||
from_buf_len(ptr, len)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user