Use const over static for string literals (#18635)

I noticed a few places where we were storing `&'static str`s in
`static`s instead of `const`s.

This PR updates them to use `const`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-10-02 12:33:13 -04:00 committed by GitHub
parent 2cd12f84de
commit 167af4bc1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 9 additions and 9 deletions

View file

@ -441,7 +441,7 @@ async fn upload_previous_panics(
Ok::<_, anyhow::Error>(most_recent_panic)
}
static LAST_CRASH_UPLOADED: &str = "LAST_CRASH_UPLOADED";
const LAST_CRASH_UPLOADED: &str = "LAST_CRASH_UPLOADED";
/// upload crashes from apple's diagnostic reports to our server.
/// (only if telemetry is enabled)