summaryrefslogtreecommitdiffstats
path: root/examples/geometry
diff options
context:
space:
mode:
Diffstat (limited to 'examples/geometry')
-rw-r--r--examples/geometry/Cargo.toml2
-rw-r--r--examples/geometry/src/main.rs5
2 files changed, 2 insertions, 5 deletions
diff --git a/examples/geometry/Cargo.toml b/examples/geometry/Cargo.toml
index 34eec4fb..22ede0e0 100644
--- a/examples/geometry/Cargo.toml
+++ b/examples/geometry/Cargo.toml
@@ -2,7 +2,7 @@
name = "geometry"
version = "0.1.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
-edition = "2018"
+edition = "2021"
publish = false
[dependencies]
diff --git a/examples/geometry/src/main.rs b/examples/geometry/src/main.rs
index 6ef12013..58dfa3ad 100644
--- a/examples/geometry/src/main.rs
+++ b/examples/geometry/src/main.rs
@@ -14,8 +14,7 @@ mod rainbow {
use iced_graphics::{Backend, Primitive};
use iced_native::{
- layout, Element, Hasher, Layout, Length, Point, Rectangle, Size,
- Vector, Widget,
+ layout, Element, Layout, Length, Point, Rectangle, Size, Vector, Widget,
};
pub struct Rainbow;
@@ -48,8 +47,6 @@ mod rainbow {
layout::Node::new(Size::new(size.width, size.width))
}
- fn hash_layout(&self, _state: &mut Hasher) {}
-
fn draw(
&self,
renderer: &mut Renderer<B>,