From 6546844ca4274cd11ec2c91da7c6d7b5e8a82d0b Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 4 Dec 2025 15:10:40 -0500 Subject: [Rust] Fix misc clippy lints and warnings These are introduced after changing to Rust 1.91.1 --- arch/riscv/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/riscv/src') diff --git a/arch/riscv/src/lib.rs b/arch/riscv/src/lib.rs index f59e1ebb..ef9e12e1 100644 --- a/arch/riscv/src/lib.rs +++ b/arch/riscv/src/lib.rs @@ -169,7 +169,7 @@ impl RegisterInfo for Register { impl architecture::Register for Register { type InfoType = Self; - fn name(&self) -> Cow { + fn name(&self) -> Cow<'_, str> { match self.reg_type() { RegType::Integer(id) => match id { 0 => "zero".into(), @@ -393,7 +393,7 @@ impl From for RiscVIntrinsic { } impl architecture::Intrinsic for RiscVIntrinsic { - fn name(&self) -> Cow { + fn name(&self) -> Cow<'_, str> { match self.id { Intrinsic::Uret => "_uret".into(), Intrinsic::Sret => "_sret".into(), -- cgit v1.3.1