summaryrefslogtreecommitdiffstats
path: root/graphics/src
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src')
-rw-r--r--graphics/src/gradient.rs4
-rw-r--r--graphics/src/image/storage.rs2
2 files changed, 3 insertions, 3 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 => {
diff --git a/graphics/src/image/storage.rs b/graphics/src/image/storage.rs
index 2098c7b2..1b5b5c35 100644
--- a/graphics/src/image/storage.rs
+++ b/graphics/src/image/storage.rs
@@ -20,7 +20,7 @@ pub trait Storage {
state: &mut Self::State<'_>,
) -> Option<Self::Entry>;
- /// Romve a [`Self::Entry`] from the [`Storage`].
+ /// Remove a [`Self::Entry`] from the [`Storage`].
fn remove(&mut self, entry: &Self::Entry, state: &mut Self::State<'_>);
}