Skip to content

Commit 610a315

Browse files
committed
Derive Clone on copyable structs for the beta.
1 parent 1f1155a commit 610a315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use objc::runtime::{Class, Object};
88
use {INSCopying, INSFastEnumeration, INSMutableCopying, INSObject, NSEnumerator};
99

1010
#[repr(isize)]
11-
#[derive(Copy)]
11+
#[derive(Clone, Copy)]
1212
pub enum NSComparisonResult {
1313
Ascending = -1,
1414
Same = 0,
@@ -34,7 +34,7 @@ impl NSComparisonResult {
3434
}
3535

3636
#[repr(C)]
37-
#[derive(Copy)]
37+
#[derive(Clone, Copy)]
3838
pub struct NSRange {
3939
pub location: usize,
4040
pub length: usize,

0 commit comments

Comments
 (0)