Commit 6793884 1 parent 324f57e commit 6793884 Copy full SHA for 6793884
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ impl Ruby {
94
94
pub type Result < T > = std:: result:: Result < T , Error > ;
95
95
96
96
/// The possible types of [`Error`].
97
- #[ derive( Debug ) ]
97
+ #[ derive( Debug , Clone ) ]
98
98
pub enum ErrorType {
99
99
/// An interrupt, such as `break` or `throw`.
100
100
Jump ( Tag ) ,
@@ -106,7 +106,7 @@ pub enum ErrorType {
106
106
}
107
107
108
108
/// Wrapper type for Ruby `Exception`s or other interrupts.
109
- #[ derive( Debug ) ]
109
+ #[ derive( Debug , Clone ) ]
110
110
pub struct Error ( ErrorType ) ;
111
111
112
112
impl Error {
@@ -350,6 +350,7 @@ impl IntoError for Error {
350
350
/// Note that `OpaqueError` contains a Ruby value, so must be kept on the stack
351
351
/// of a Ruby thread to prevent it from being Garbage Collected (or otherwise
352
352
/// protected from premature GC).
353
+ #[ derive( Clone ) ]
353
354
pub struct OpaqueError ( ErrorType ) ;
354
355
355
356
unsafe impl Send for OpaqueError { }
@@ -394,7 +395,7 @@ impl IntoError for OpaqueError {
394
395
395
396
/// The state of a call to Ruby exiting early, interrupting the normal flow
396
397
/// of code.
397
- #[ derive( Debug ) ]
398
+ #[ derive( Debug , Clone , Copy ) ]
398
399
#[ repr( i32 ) ]
399
400
pub enum Tag {
400
401
// None = 0,
You can’t perform that action at this time.
0 commit comments