Skip to content

Commit

Permalink
Fix some new clippy lifetime warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mutexlox-signal committed Oct 10, 2024
1 parent da6c2ae commit 5170a11
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 @@ -738,7 +738,7 @@ impl<'a> PulseDevListData<'a> {
}
}

impl<'a> Drop for PulseDevListData<'a> {
impl Drop for PulseDevListData<'_> {
fn drop(&mut self) {
for elem in &mut self.devinfo {
let _ = unsafe { Box::from_raw(elem) };
Expand Down
6 changes: 3 additions & 3 deletions src/backend/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,13 +609,13 @@ impl<'ctx> PulseStream<'ctx> {
}
}

impl<'ctx> Drop for PulseStream<'ctx> {
impl Drop for PulseStream<'_> {
fn drop(&mut self) {
self.destroy();
}
}

impl<'ctx> StreamOps for PulseStream<'ctx> {
impl StreamOps for PulseStream<'_> {
fn start(&mut self) -> Result<()> {
fn output_preroll(_: &pulse::MainloopApi, u: *mut c_void) {
let stm = unsafe { &mut *(u as *mut PulseStream) };
Expand Down Expand Up @@ -868,7 +868,7 @@ impl<'ctx> StreamOps for PulseStream<'ctx> {
}
}

impl<'ctx> PulseStream<'ctx> {
impl PulseStream<'_> {
fn stream_init(
context: &pulse::Context,
stream_params: &StreamParamsRef,
Expand Down

0 comments on commit 5170a11

Please sign in to comment.