Skip to content

Commit e6465fc

Browse files
committed
Fix clippy, run it, fix clippies, for ther fallback path
1 parent 6a2f575 commit e6465fc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Clippy
7575
shell: bash
76-
run: rustup run ${{ matrix.rust }} cargo clippy -- -D warnings
76+
run: rustup run ${{ matrix.rust }} cargo clippy --no-default-features -- -D warnings
7777

7878
- name: Build fallback (Linux without dbus)
7979
shell: bash

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ cfg_if! {
176176
if audio_samplerate_hz == 0 {
177177
return Err(AudioThreadPriorityError::new("sample rate is zero"));
178178
}
179-
return Ok(RtPriorityHandle{});
179+
Ok(RtPriorityHandle{})
180180
}
181181

182182
/// Fallback implementation that performs no operation for unsupported platforms.
183183
pub fn demote_thread_from_real_time_internal(_: RtPriorityThreadInfo) -> Result<(), AudioThreadPriorityError> {
184-
return Ok(());
184+
Ok(())
185185
}
186186
#[no_mangle]
187187
/// Size of a RtPriorityThreadInfo or atp_thread_info struct, for use in FFI.

0 commit comments

Comments
 (0)