diff options
| author | Mason Reed <mason@vector35.com> | 2025-12-04 15:10:40 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-12-05 12:26:29 -0500 |
| commit | 6546844ca4274cd11ec2c91da7c6d7b5e8a82d0b (patch) | |
| tree | 7341b815993247cba9df7ea95585ce9723510fa0 /arch/msp430/src | |
| parent | 6eb12c3c3f53079a822881bf6e197105b25a0fe3 (diff) | |
[Rust] Fix misc clippy lints and warnings
These are introduced after changing to Rust 1.91.1
Diffstat (limited to 'arch/msp430/src')
| -rw-r--r-- | arch/msp430/src/flag.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<str> { + fn name(&self) -> Cow<'_, str> { match self { Self::C => "c".into(), Self::Z => "z".into(), @@ -62,7 +62,7 @@ impl TryFrom<FlagId> for Flag { pub struct FlagClass {} impl architecture::FlagClass for FlagClass { - fn name(&self) -> Cow<str> { + 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<str> { + 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<str> { + fn name(&self) -> Cow<'_, str> { match self { Self::All => "*".into(), Self::Nz => "nz".into(), |
