Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit f675f7d

Browse files
authored
Implement Copy for gdk::Key
gdk::Key wraps a u32 value, which is Copy.
1 parent 08b27ac commit f675f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdk/src/keys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use glib::GString;
55
use libc::c_uint;
66
use std::mem;
77

8-
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
8+
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
99
pub struct Key(u32);
1010

1111
impl ::std::ops::Deref for Key {

0 commit comments

Comments
 (0)