Change signature of all() function
This commit is contained in:
committed by
Benjamin Bouvier
parent
c3d01756a3
commit
79784dfaf6
@@ -38,8 +38,8 @@ impl Isa {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns all supported isa targets.
|
/// Returns all supported isa targets.
|
||||||
pub fn all() -> [Isa; 4] {
|
pub fn all() -> &'static [Isa] {
|
||||||
[Isa::Riscv, Isa::X86, Isa::Arm32, Isa::Arm64]
|
&[Isa::Riscv, Isa::X86, Isa::Arm32, Isa::Arm64]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user