Skip to content

Commit 9ed7414

Browse files
committed
runtime/fireface: add static lifetime for trait local variable
This commit suppresses the following warning reported by rustc version 1.75. warning: `&` without an explicit lifetime name cannot be used here ... = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #115010 <rust-lang/rust#115010> = note: `#[warn(elided_lifetimes_in_associated_constant)]` on by default help: use the `'static` lifetime Signed-off-by: Takashi Sakamoto <[email protected]>
1 parent bb97e16 commit 9ed7414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/fireface/src/latter_ctls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3354,13 +3354,13 @@ where
33543354
+ RmeFfWhollyCommandableParamsOperation<FfLatterFxEchoState>
33553355
+ RmeFfPartiallyCommandableParamsOperation<FfLatterFxEchoState>,
33563356
{
3357-
const ECHO_TYPES: &[FfLatterFxEchoType] = &[
3357+
const ECHO_TYPES: &'static [FfLatterFxEchoType] = &[
33583358
FfLatterFxEchoType::StereoEcho,
33593359
FfLatterFxEchoType::StereoCross,
33603360
FfLatterFxEchoType::PongEcho,
33613361
];
33623362

3363-
const ECHO_LPF_FREQS: &[FfLatterFxEchoLpfFreq] = &[
3363+
const ECHO_LPF_FREQS: &'static [FfLatterFxEchoLpfFreq] = &[
33643364
FfLatterFxEchoLpfFreq::Off,
33653365
FfLatterFxEchoLpfFreq::H2000,
33663366
FfLatterFxEchoLpfFreq::H4000,

0 commit comments

Comments
 (0)