Skip to content

Commit 906f3ff

Browse files
committed
refactor: fix clippy lints
1 parent 0e0858e commit 906f3ff

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/host/jack/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Device {
4444
Ok(client) => Ok(Device {
4545
// The name given to the client by JACK, could potentially be different from the name supplied e.g.if there is a name collision
4646
name: client.name().to_string(),
47-
sample_rate: client.sample_rate() as u32,
47+
sample_rate: client.sample_rate(),
4848
buffer_size: SupportedBufferSize::Range {
4949
min: client.buffer_size(),
5050
max: client.buffer_size(),

src/host/jack/stream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl Stream {
7070
let input_process_handler = LocalProcessHandler::new(
7171
vec![],
7272
ports,
73-
client.sample_rate() as u32,
73+
client.sample_rate(),
7474
client.buffer_size() as usize,
7575
Some(Box::new(data_callback)),
7676
None,
@@ -135,7 +135,7 @@ impl Stream {
135135
let output_process_handler = LocalProcessHandler::new(
136136
ports,
137137
vec![],
138-
client.sample_rate() as u32,
138+
client.sample_rate(),
139139
client.buffer_size() as usize,
140140
None,
141141
Some(Box::new(data_callback)),

0 commit comments

Comments
 (0)