Skip to content

Commit 836e91c

Browse files
committed
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.
1 parent 7f73a6c commit 836e91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/interning.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::ptr;
1111
use std::str;
1212
use std::sync::Mutex;
1313

14-
pub fn leak(s: String) -> &'static str {
14+
fn leak(s: String) -> &'static str {
1515
Box::leak(s.into_boxed_str())
1616
}
1717

0 commit comments

Comments
 (0)