Skip to content

Commit 5f44fd1

Browse files
committed
fixed some linter issues
1 parent 6ec3add commit 5f44fd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/aaudio.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use ndk::audio::{
1010
use std::error::Error;
1111

1212
pub struct AAudioOutputDevice {
13-
stream: AudioStream,
13+
_stream: AudioStream,
1414
}
1515

1616
impl BaseAudioOutputDevice for AAudioOutputDevice {}
@@ -28,7 +28,7 @@ impl AudioOutputDevice for AAudioOutputDevice {
2828
Self: Sized,
2929
{
3030
let frame_count = params.channel_sample_count as i32;
31-
let mut stream = AudioStreamBuilder::new()
31+
let stream = AudioStreamBuilder::new()
3232
.map_err(convert_err)?
3333
// Ensure double buffering is possible.
3434
.buffer_capacity_in_frames(2 * frame_count)
@@ -59,6 +59,6 @@ impl AudioOutputDevice for AAudioOutputDevice {
5959

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

62-
Ok(Self { stream })
62+
Ok(Self { _stream: stream })
6363
}
6464
}

0 commit comments

Comments
 (0)