derive Copy for Direction

While similar enum like `Corner` implement `Copy` trait but `Direction` does not. Since this enum is simple it should make sense to derive this.

Suggested in #634
pull/636/head
Sudip Ghimire 2 years ago committed by GitHub
parent a6b25a4877
commit a59e7e2f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@ pub enum Corner {
BottomLeft,
}
#[derive(Debug, Hash, Clone, PartialEq, Eq)]
#[derive(Debug, Hash, Clone, Copy, PartialEq, Eq)]
pub enum Direction {
Horizontal,
Vertical,

Loading…
Cancel
Save