summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/modern_art/src/main.rs2
-rw-r--r--examples/solar_system/src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/modern_art/src/main.rs b/examples/modern_art/src/main.rs
index db9b0491..0dd21c74 100644
--- a/examples/modern_art/src/main.rs
+++ b/examples/modern_art/src/main.rs
@@ -133,7 +133,7 @@ fn generate_box(frame: &mut Frame, bounds: Size) -> bool {
if solid {
frame.fill_rectangle(top_left, size, random_color());
} else {
- frame.fill_rectangle(top_left, size, &gradient(top_left, size));
+ frame.fill_rectangle(top_left, size, gradient(top_left, size));
};
solid
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs
index 8d27d154..56787a99 100644
--- a/examples/solar_system/src/main.rs
+++ b/examples/solar_system/src/main.rs
@@ -213,7 +213,7 @@ impl<Message> canvas::Program<Message> for State {
.build()
.expect("Build Earth fill gradient");
- frame.fill(&earth, &earth_fill);
+ frame.fill(&earth, earth_fill);
frame.with_save(|frame| {
frame.rotate(rotation * 10.0);