Change signature of all() function

This commit is contained in:
John Gallagher
2019-09-30 09:38:03 -04:00
committed by Benjamin Bouvier
parent c3d01756a3
commit 79784dfaf6

View File

@@ -38,8 +38,8 @@ impl Isa {
}
/// Returns all supported isa targets.
pub fn all() -> [Isa; 4] {
[Isa::Riscv, Isa::X86, Isa::Arm32, Isa::Arm64]
pub fn all() -> &'static [Isa] {
&[Isa::Riscv, Isa::X86, Isa::Arm32, Isa::Arm64]
}
}