Skip to content

Commit

Permalink
Derive Copy for Anchor and LineMode.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Feb 24, 2020
1 parent 5a52eea commit bb4f833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amethyst_ui/src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub enum ScaleMode {

/// Indicated where the anchor is, relative to the parent (or to the screen, if there is no parent).
/// Follow a normal english Y,X naming.
#[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)]
#[derive(Debug, Clone, Copy, Eq, PartialEq, Deserialize, Serialize)]
pub enum Anchor {
/// Anchors the entity at the top left of the parent.
TopLeft,
Expand Down
2 changes: 1 addition & 1 deletion amethyst_ui/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use amethyst_window::ScreenDimensions;
use super::*;

/// How lines should behave when they are longer than the maximum line length.
#[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)]
#[derive(Debug, Clone, Copy, Eq, PartialEq, Deserialize, Serialize)]
pub enum LineMode {
/// Single line. It ignores line breaks.
Single,
Expand Down

0 comments on commit bb4f833

Please sign in to comment.