diff --git a/src/cargo/util/interning.rs b/src/cargo/util/interning.rs index 942869ac70b..bbec1294269 100644 --- a/src/cargo/util/interning.rs +++ b/src/cargo/util/interning.rs @@ -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()) }