Switch to rust edition 2021

This commit is contained in:
Alexis Sellier 2022-05-04 22:40:29 +02:00
parent 6202914650
commit 66488889e5
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View File

@ -6,7 +6,7 @@ license = "GPL-3.0-only"
repository = "https://github.com/cloudhead/rx"
homepage = "https://rx.cloudhead.io"
authors = ["Alexis Sellier <self@cloudhead.io>"]
edition = "2018"
edition = "2021"
[features]
default = ["glfw"]

View File

@ -423,8 +423,6 @@ impl GifRecorder {
}
fn finish(&mut self) -> io::Result<()> {
use std::convert::TryInto;
if let Some(encoder) = &mut self.encoder {
for (i, (t1, gif_data)) in self.frames.iter().enumerate() {
let delay = if let Some((t2, _)) = self.frames.get(i + 1) {