replaces few consts with statics to reduce readonly section

This commit is contained in:
klensy
2025-01-28 17:38:22 +03:00
parent 633a3fe36d
commit dc62b8fd11
7 changed files with 15 additions and 15 deletions

View File

@@ -1624,7 +1624,7 @@ macro_rules! supported_targets {
}
/// List of supported targets
pub const TARGETS: &[&str] = &[$($tuple),+];
pub static TARGETS: &[&str] = &[$($tuple),+];
fn load_builtin(target: &str) -> Option<Target> {
let t = match target {