Skip to content

Commit

Permalink
Fix clippy::deprecated-clippy-cfg-attr warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehrsons committed May 15, 2024
1 parent 0df7866 commit 37ee83c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/backend/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ impl ContextOps for PulseContext {
Ok(())
}

#[cfg_attr(feature = "cargo-clippy", allow(clippy::too_many_arguments))]
#[allow(clippy::too_many_arguments)]
fn stream_init(
&mut self,
stream_name: Option<&CStr>,
Expand Down
6 changes: 3 additions & 3 deletions src/backend/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ pub struct PulseStream<'ctx> {
}

impl<'ctx> PulseStream<'ctx> {
#[cfg_attr(feature = "cargo-clippy", allow(clippy::too_many_arguments))]
#[allow(clippy::too_many_arguments)]
pub fn new(
context: &'ctx PulseContext,
stream_name: Option<&CStr>,
Expand Down Expand Up @@ -1033,7 +1033,7 @@ impl<'ctx> PulseStream<'ctx> {
true
}

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

0 comments on commit 37ee83c

Please sign in to comment.