Skip to content

Commit

Permalink
fixed some linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdi committed Jan 7, 2025
1 parent 6ec3add commit 5f44fd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aaudio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use ndk::audio::{
use std::error::Error;

pub struct AAudioOutputDevice {
stream: AudioStream,
_stream: AudioStream,
}

impl BaseAudioOutputDevice for AAudioOutputDevice {}
Expand All @@ -28,7 +28,7 @@ impl AudioOutputDevice for AAudioOutputDevice {
Self: Sized,
{
let frame_count = params.channel_sample_count as i32;
let mut stream = AudioStreamBuilder::new()
let stream = AudioStreamBuilder::new()
.map_err(convert_err)?
// Ensure double buffering is possible.
.buffer_capacity_in_frames(2 * frame_count)
Expand Down Expand Up @@ -59,6 +59,6 @@ impl AudioOutputDevice for AAudioOutputDevice {

stream.request_start().map_err(convert_err)?;

Ok(Self { stream })
Ok(Self { _stream: stream })
}
}

0 comments on commit 5f44fd1

Please sign in to comment.