From 1d150b3597a5a7f0ad2b8d86ab87e186963b4f71 Mon Sep 17 00:00:00 2001 From: Damien Cauquil Date: Mon, 12 Feb 2024 10:20:08 +0100 Subject: [PATCH] Fix wrong CPU model. --- bindings/rust/src/rh850.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/rust/src/rh850.rs b/bindings/rust/src/rh850.rs index 7b91987b56..92e8a16a4a 100644 --- a/bindings/rust/src/rh850.rs +++ b/bindings/rust/src/rh850.rs @@ -107,7 +107,7 @@ pub enum RH850CpuModel { } impl From for i32 { - fn from(value: Riscv32CpuModel) -> Self { + fn from(value: RH850CpuModel) -> Self { value as i32 } }