Skip to main content

leak

Function leak 

Source
pub fn leak(s: String) -> &'static str
Expand description

Leak an owned String to satisfy Scope::Project(&'a str). Safe in fire-and-forget binaries: the process runs one command and exits, so the “leak” ends with the process. Library callers in long-lived processes should construct Scope::Project(&slug) from a string they own and avoid this helper.