Skip to content

Commit

Permalink
runtime/fireface: add static lifetime for trait local variable
Browse files Browse the repository at this point in the history
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 <o-takashi@sakamocchi.jp>
  • Loading branch information
takaswie committed Mar 2, 2024
1 parent bb97e16 commit 9ed7414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/fireface/src/latter_ctls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3354,13 +3354,13 @@ where
+ RmeFfWhollyCommandableParamsOperation<FfLatterFxEchoState>
+ RmeFfPartiallyCommandableParamsOperation<FfLatterFxEchoState>,
{
const ECHO_TYPES: &[FfLatterFxEchoType] = &[
const ECHO_TYPES: &'static [FfLatterFxEchoType] = &[
FfLatterFxEchoType::StereoEcho,
FfLatterFxEchoType::StereoCross,
FfLatterFxEchoType::PongEcho,
];

const ECHO_LPF_FREQS: &[FfLatterFxEchoLpfFreq] = &[
const ECHO_LPF_FREQS: &'static [FfLatterFxEchoLpfFreq] = &[
FfLatterFxEchoLpfFreq::Off,
FfLatterFxEchoLpfFreq::H2000,
FfLatterFxEchoLpfFreq::H4000,
Expand Down

0 comments on commit 9ed7414

Please sign in to comment.