cargo fmt fix

This commit is contained in:
JoshuaBatty 2020-05-27 12:15:31 +02:00
parent 7c1adce330
commit 9c85eecb59
3 changed files with 20 additions and 16 deletions

View File

@ -442,7 +442,11 @@ impl Driver {
/// If buffersize is None then the preferred buffer size from ASIO is used,
/// otherwise the desired buffersize is used if the requeted size is within
/// the range of accepted buffersizes for the device.
fn create_buffers(&self, buffer_infos: &mut [AsioBufferInfo], buffer_size: Option<i32>) -> Result<c_long, AsioError> {
fn create_buffers(
&self,
buffer_infos: &mut [AsioBufferInfo],
buffer_size: Option<i32>,
) -> Result<c_long, AsioError> {
let num_channels = buffer_infos.len();
// To pass as ai::ASIOCallbacks
@ -464,9 +468,9 @@ impl Driver {
if v <= buffer_sizes.max {
v
} else {
return Err(AsioError::InvalidBufferSize)
return Err(AsioError::InvalidBufferSize);
}
}
},
None => buffer_sizes.pref,
};