From 5f44fd1d8bddd12f949ef39ba7403e6048c39830 Mon Sep 17 00:00:00 2001 From: mahdi Date: Wed, 8 Jan 2025 01:04:35 +0330 Subject: [PATCH] fixed some linter issues --- src/aaudio.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aaudio.rs b/src/aaudio.rs index f5bf0be..3cb566f 100644 --- a/src/aaudio.rs +++ b/src/aaudio.rs @@ -10,7 +10,7 @@ use ndk::audio::{ use std::error::Error; pub struct AAudioOutputDevice { - stream: AudioStream, + _stream: AudioStream, } impl BaseAudioOutputDevice for AAudioOutputDevice {} @@ -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) @@ -59,6 +59,6 @@ impl AudioOutputDevice for AAudioOutputDevice { stream.request_start().map_err(convert_err)?; - Ok(Self { stream }) + Ok(Self { _stream: stream }) } }