mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Make leak function private
The leak function is never used outside of interning.rs and I don't think it makes any sense to use it.
This commit is contained in:
parent
7f73a6c782
commit
836e91ce4c
@ -11,7 +11,7 @@ use std::ptr;
|
|||||||
use std::str;
|
use std::str;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
pub fn leak(s: String) -> &'static str {
|
fn leak(s: String) -> &'static str {
|
||||||
Box::leak(s.into_boxed_str())
|
Box::leak(s.into_boxed_str())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user