Skip to content

Commit adce9e0

Browse files
committed
Update Rust edition to 2021 🎉
1 parent 554e0a0 commit adce9e0

File tree

39 files changed

+39
-41
lines changed

39 files changed

+39
-41
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced"
33
version = "0.3.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "A cross-platform GUI library inspired by Elm"
77
license = "MIT"
88
repository = "https://github.com/iced-rs/iced"

core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced_core"
33
version = "0.4.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "The essential concepts of Iced"
77
license = "MIT"
88
repository = "https://github.com/iced-rs/iced"

examples/bezier_tool/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "bezier_tool"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/clock/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "clock"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/color_palette/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "color_palette"
33
version = "0.1.0"
44
authors = ["Clark Moody <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/component/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "component"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/counter/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "counter"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/custom_widget/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "custom_widget"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/download_progress/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "download_progress"
33
version = "0.1.0"
44
authors = ["Songtronix <[email protected]>", "Folyd <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/events/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "events"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/game_of_life/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "game_of_life"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/geometry/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "geometry"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/integration_opengl/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "integration_opengl"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/integration_wgpu/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "integration_wgpu"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/pane_grid/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "pane_grid"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/pick_list/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "pick_list"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/pokedex/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "pokedex"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/progress_bar/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "progress_bar"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/qr_code/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "qr_code"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/scrollable/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "scrollable"
33
version = "0.1.0"
44
authors = ["Clark Moody <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/solar_system/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "solar_system"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/stopwatch/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "stopwatch"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/styling/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "styling"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/svg/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "svg"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/todos/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "todos"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/tooltip/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "tooltip"
33
version = "0.1.0"
44
authors = ["Yusuf Bera Ertan <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/tour/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "tour"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

examples/url_handler/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
name = "url_handler"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]
99
iced = { path = "../.." }
10-
iced_native = { path = "../../native" }
10+
iced_native = { path = "../../native" }

examples/websocket/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "websocket"
33
version = "0.1.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

futures/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced_futures"
33
version = "0.3.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "Commands, subscriptions, and runtimes for Iced"
77
license = "MIT"
88
repository = "https://github.com/iced-rs/iced"

glow/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced_glow"
33
version = "0.2.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "A glow renderer for iced"
77
license = "MIT AND OFL-1.1"
88
repository = "https://github.com/hecrj/iced"

glutin/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced_glutin"
33
version = "0.2.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "A glutin runtime for Iced"
77
license = "MIT"
88
repository = "https://github.com/iced-rs/iced"

graphics/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced_graphics"
33
version = "0.2.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "A bunch of backend-agnostic types that can be leveraged to build a renderer for Iced"
77
license = "MIT"
88
repository = "https://github.com/hecrj/iced"

native/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced_native"
33
version = "0.4.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "A renderer-agnostic library for native GUIs"
77
license = "MIT"
88
repository = "https://github.com/iced-rs/iced"

rustfmt.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
max_width=80
2-
edition="2018"
2+
edition="2021"

style/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced_style"
33
version = "0.3.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "The default set of styles of Iced"
77
license = "MIT"
88
repository = "https://github.com/iced-rs/iced"

wgpu/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced_wgpu"
33
version = "0.4.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "A wgpu renderer for Iced"
77
license = "MIT AND OFL-1.1"
88
repository = "https://github.com/iced-rs/iced"

wgpu/src/image/raster.rs

-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ impl Operation {
163163
where
164164
R: std::io::BufRead + std::io::Seek,
165165
{
166-
use std::convert::TryFrom;
167-
168166
let exif = exif::Reader::new().read_from_container(reader)?;
169167

170168
Ok(exif

winit/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "iced_winit"
33
version = "0.3.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "A winit runtime for Iced"
77
license = "MIT"
88
repository = "https://github.com/hecrj/iced"

0 commit comments

Comments
 (0)