Fix compiler errors in wasapi backend after testing on windows
This commit is contained in:
parent
0b6e66d38e
commit
6164f83147
2 changed files with 5 additions and 5 deletions
|
|
@ -21,10 +21,10 @@ fn check_result(result: HRESULT) -> Result<(), IoError> {
|
|||
|
||||
fn check_result_backend_specific(result: HRESULT) -> Result<(), BackendSpecificError> {
|
||||
match check_result(result) {
|
||||
Ok(()) => Ok(())
|
||||
Ok(()) => Ok(()),
|
||||
Err(err) => {
|
||||
let description = format!("{}", err);
|
||||
return BackendSpecificError { description }
|
||||
return Err(BackendSpecificError { description });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue