diff --git a/src/cargo/sources/registry/mod.rs b/src/cargo/sources/registry/mod.rs index b53e88d58a8..ac29f25093e 100644 --- a/src/cargo/sources/registry/mod.rs +++ b/src/cargo/sources/registry/mod.rs @@ -887,7 +887,7 @@ impl<'cfg> Source for RegistrySource<'cfg> { impl RegistryConfig { /// File name of [`RegistryConfig`]. - const NAME: &str = "config.json"; + const NAME: &'static str = "config.json"; } /// Get the maximum upack size that Cargo permits