Skip to content

Commit f845824

Browse files
Pehrsonspadenot
authored andcommitted
Fix clippy::deprecated-clippy-cfg-attr warnings
1 parent 977ea65 commit f845824

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ impl ContextOps for PulseContext {
515515
Ok(())
516516
}
517517

518-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::too_many_arguments))]
518+
#[allow(clippy::too_many_arguments)]
519519
fn stream_init(
520520
&mut self,
521521
stream_name: Option<&CStr>,

src/backend/stream.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ pub struct PulseStream<'ctx> {
283283
}
284284

285285
impl<'ctx> PulseStream<'ctx> {
286-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::too_many_arguments))]
286+
#[allow(clippy::too_many_arguments)]
287287
pub fn new(
288288
context: &'ctx PulseContext,
289289
stream_name: Option<&CStr>,
@@ -1033,7 +1033,7 @@ impl<'ctx> PulseStream<'ctx> {
10331033
true
10341034
}
10351035

1036-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::cognitive_complexity))]
1036+
#[allow(clippy::cognitive_complexity)]
10371037
fn trigger_user_callback(&mut self, input_data: *const c_void, nbytes: usize) {
10381038
fn drained_cb(
10391039
a: &pulse::MainloopApi,
@@ -1074,7 +1074,7 @@ impl<'ctx> PulseStream<'ctx> {
10741074
read_offset
10751075
);
10761076
let read_ptr = unsafe { (input_data as *const u8).add(read_offset) };
1077-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::unnecessary_cast))]
1077+
#[allow(clippy::unnecessary_cast)]
10781078
let mut got = unsafe {
10791079
self.data_callback.unwrap()(
10801080
self as *const _ as *mut _,

0 commit comments

Comments
 (0)