From 434508ca1a5ee2f4bf0f1e3b9f01c5e4e167efa2 Mon Sep 17 00:00:00 2001 From: Mitchell Johnson Date: Wed, 6 Apr 2022 22:13:41 -0400 Subject: Fix no_std builds --- src/armv8/a64.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index caf486f..85e2ced 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -5563,14 +5563,14 @@ impl Decoder for InstDecoder { inst.operands = [ Operand::SIMDRegister(precision, Rd as u16), Operand::Register(size, Rn as u16), - Operand::Immediate(std::cmp::min(64 - scale, if size == SizeCode::X { 64 } else { 32 })), + Operand::Immediate(core::cmp::min(64 - scale, if size == SizeCode::X { 64 } else { 32 })), Operand::Nothing, ]; } else { inst.operands = [ Operand::Register(size, Rd as u16), Operand::SIMDRegister(precision, Rn as u16), - Operand::Immediate(std::cmp::min(64 - scale, if size == SizeCode::X { 64 } else { 32 })), + Operand::Immediate(core::cmp::min(64 - scale, if size == SizeCode::X { 64 } else { 32 })), Operand::Nothing, ]; } @@ -7694,7 +7694,7 @@ impl Decoder for InstDecoder { let compound_idx = (op << 1) | sf; let (opcode, source_size, dest_size) = DATA_PROCESSING_3_SOURCE.get(compound_idx as usize) - .map(std::borrow::ToOwned::to_owned) + .cloned() .unwrap_or(Err(DecodeError::InvalidOpcode))?; inst.opcode = opcode; -- cgit v1.1