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/msp430/src/flag.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'arch/msp430/src') diff --git a/arch/msp430/src/flag.rs b/arch/msp430/src/flag.rs index 5baca412..698f3b19 100644 --- a/arch/msp430/src/flag.rs +++ b/arch/msp430/src/flag.rs @@ -16,7 +16,7 @@ pub enum Flag { impl architecture::Flag for Flag { type FlagClass = FlagClass; - fn name(&self) -> Cow { + fn name(&self) -> Cow<'_, str> { match self { Self::C => "c".into(), Self::Z => "z".into(), @@ -62,7 +62,7 @@ impl TryFrom for Flag { pub struct FlagClass {} impl architecture::FlagClass for FlagClass { - fn name(&self) -> Cow { + fn name(&self) -> Cow<'_, str> { unimplemented!() } @@ -78,7 +78,7 @@ impl architecture::FlagGroup for FlagGroup { type FlagType = Flag; type FlagClass = FlagClass; - fn name(&self) -> Cow { + fn name(&self) -> Cow<'_, str> { unimplemented!() } @@ -107,7 +107,7 @@ impl architecture::FlagWrite for FlagWrite { type FlagType = Flag; type FlagClass = FlagClass; - fn name(&self) -> Cow { + fn name(&self) -> Cow<'_, str> { match self { Self::All => "*".into(), Self::Nz => "nz".into(), -- cgit v1.3.1