mirror of
https://github.com/cloudhead/rx.git
synced 2024-11-20 18:09:56 +03:00
Switch to rust edition 2021
This commit is contained in:
parent
6202914650
commit
66488889e5
@ -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"]
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user