Commit 981ad644770ef3b98260145342714ab664f44947

Cléo Rebert 2020-11-02T23:21:19

Fixed warning about deprecated type alias

diff --git a/Cargo.toml b/Cargo.toml
index 90beb51..760f024 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "totp-rs"
-version = "0.6.2"
+version = "0.6.3"
 authors = ["Cleo Rebert <cleo.rebert@gmail.com>"]
 edition = "2018"
 readme = "README.md"
diff --git a/src/lib.rs b/src/lib.rs
index 26e4637..127ff76 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -175,7 +175,7 @@ impl<T: AsRef<[u8]>> TOTP<T> {
         let code = QrCode::new(&url)?;
         let mut vec = Vec::new();
         let size: u32 = ((code.width() + 8) * 8) as u32;
-        let encoder = image::png::PNGEncoder::new(&mut vec);
+        let encoder = image::png::PngEncoder::new(&mut vec);
         encoder.encode(
             code.render::<Luma<u8>>().build().as_ref(),
             size,