utils: Update for renamed clippy lint in 1.76

This commit is contained in:
Sebastian Dröge 2024-02-08 21:37:17 +02:00
parent 9116853e6d
commit c0d111e2c1
3 changed files with 5 additions and 5 deletions

View file

@ -534,7 +534,7 @@ impl ObjectImpl for FallbackSrc {
// Called whenever a value of a property is read. It can be called // Called whenever a value of a property is read. It can be called
// at any time from any thread. // at any time from any thread.
#[allow(clippy::blocks_in_if_conditions)] #[allow(clippy::block_in_conditions)]
fn property(&self, _id: usize, pspec: &glib::ParamSpec) -> glib::Value { fn property(&self, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
match pspec.name() { match pspec.name() {
"enable-audio" => { "enable-audio" => {
@ -3237,7 +3237,7 @@ impl FallbackSrc {
}); });
} }
#[allow(clippy::blocks_in_if_conditions)] #[allow(clippy::block_in_conditions)]
fn schedule_source_restart_timeout( fn schedule_source_restart_timeout(
&self, &self,
state: &mut State, state: &mut State,
@ -3400,7 +3400,7 @@ impl FallbackSrc {
source.restart_timeout = Some(timeout); source.restart_timeout = Some(timeout);
} }
#[allow(clippy::blocks_in_if_conditions)] #[allow(clippy::block_in_conditions)]
fn have_fallback_activated(&self, state: &State) -> bool { fn have_fallback_activated(&self, state: &State) -> bool {
let mut have_audio = false; let mut have_audio = false;
let mut have_video = false; let mut have_video = false;

View file

@ -771,7 +771,7 @@ impl FallbackSwitch {
is_active is_active
); );
#[allow(clippy::blocks_in_if_conditions)] #[allow(clippy::block_in_conditions)]
let output_clockid = if is_active { let output_clockid = if is_active {
pad_state.schedule_clock( pad_state.schedule_clock(
self, self,

View file

@ -693,7 +693,7 @@ impl ToggleRecord {
} }
} }
#[allow(clippy::blocks_in_if_conditions)] #[allow(clippy::block_in_conditions)]
fn handle_secondary_stream<T: HandleData>( fn handle_secondary_stream<T: HandleData>(
&self, &self,
pad: &gst::Pad, pad: &gst::Pad,