diff options
Diffstat (limited to '')
| -rw-r--r-- | graphics/src/gradient.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/graphics/src/gradient.rs b/graphics/src/gradient.rs index 83f25238..61e919d6 100644 --- a/graphics/src/gradient.rs +++ b/graphics/src/gradient.rs @@ -64,7 +64,7 @@ impl From<(Point, Point)> for Position {      }  } -#[derive(Debug)] +#[derive(Debug, Clone, Copy)]  /// The location of a relatively-positioned gradient.  pub enum Location {      /// Top left. @@ -86,7 +86,7 @@ pub enum Location {  }  impl Location { -    fn to_absolute(&self, top_left: Point, size: Size) -> Point { +    fn to_absolute(self, top_left: Point, size: Size) -> Point {          match self {              Location::TopLeft => top_left,              Location::Top => { | 
