mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +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::sync::Mutex;
|
||||
|
||||
pub fn leak(s: String) -> &'static str {
|
||||
fn leak(s: String) -> &'static str {
|
||||
Box::leak(s.into_boxed_str())
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user