Skip to content

Commit 38c5776

Browse files
committed
value: impl Copy for ValueRef
ValueRef is a &-reference with a bit of small metadata attached. It should be Copy just like &Value is.
1 parent 22d5618 commit 38c5776

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub struct Value {
3838
}
3939

4040
/// Reference to a value, or to a sub-value of a value.
41-
#[derive(Debug, Clone)]
41+
#[derive(Debug, Clone, Copy)]
4242
pub struct ValueRef<'v> {
4343
inner: &'v Arc<[u8]>,
4444
bit_offset: usize,

0 commit comments

Comments
 (0)