Skip to content

Commit c77747d

Browse files
authored
refactor: clippy lint in macOS CoreAudio — audio_device_id < 0 (#993)
Replaced "u32 < 0" with "false"
1 parent d64da68 commit c77747d

File tree

1 file changed

+2
-1
lines changed
  • src/host/coreaudio/macos

1 file changed

+2
-1
lines changed

src/host/coreaudio/macos/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ impl Device {
166166
pub fn new(audio_device_id: AudioDeviceID) -> Self {
167167
Device {
168168
audio_device_id,
169-
is_default: audio_device_id < 0,
169+
// TODO: This could be made to detect the default device properly.
170+
is_default: false,
170171
}
171172
}
172173

0 commit comments

Comments
 (0)