Make all error enums Clone (#924)

This commit is contained in:
Antoine Beyeler 2024-11-03 03:05:13 +01:00 • committed by GitHub
parent f43d36e554
commit ca77d848ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 8 deletions

View file

@ -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,