Make all error enums Clone (#924)
This commit is contained in:
parent
f43d36e554
commit
ca77d848ad
3 changed files with 10 additions and 8 deletions
|
|
@ -2,7 +2,7 @@ use std::error::Error;
|
|||
use std::fmt;
|
||||
|
||||
/// Errors that might occur during `Asio::load_driver`.
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum LoadDriverError {
|
||||
LoadDriverFailed,
|
||||
DriverAlreadyExists,
|
||||
|
|
@ -10,7 +10,7 @@ pub enum LoadDriverError {
|
|||
}
|
||||
|
||||
/// General errors returned by ASIO.
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum AsioError {
|
||||
NoDrivers,
|
||||
HardwareMalfunction,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue