asio sys lib comments and rust fmt
This commit is contained in:
parent
f6d1a74be2
commit
72c5e9a8c1
|
@ -578,7 +578,6 @@ impl BufferCallback {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// Adds a callback to the list of active callbacks
|
||||
pub fn set_callback<F: 'static>(callback: F) -> ()
|
||||
where
|
||||
|
@ -683,8 +682,7 @@ impl AsioWrapper {
|
|||
unsafe fn asio_init(&mut self, di: &mut ai::ASIODriverInfo) -> Result<(), AsioError> {
|
||||
if let AsioState::Loaded = self.state {
|
||||
let result = ai::ASIOInit(di);
|
||||
asio_result!(result)
|
||||
.map(|_| self.state = AsioState::Initialized)
|
||||
asio_result!(result).map(|_| self.state = AsioState::Initialized)
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue