use `dyn` in main method declaration

This commit is contained in:
Michael Pfaff 2020-09-26 15:06:03 -04:00
parent b24e0de684
commit 617945fc8e
Signed by: michael
GPG Key ID: E53B118B12B5C7F9
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -60,7 +60,7 @@ dependencies = [
[[package]] [[package]]
name = "in2qr" name = "in2qr"
version = "0.1.0" version = "1.0.1"
dependencies = [ dependencies = [
"qr2term", "qr2term",
] ]

View File

@ -1,6 +1,6 @@
[package] [package]
name = "in2qr" name = "in2qr"
version = "1.0.0" version = "1.0.1"
authors = ["Michael Pfaff <michael@pfaff.dev>"] authors = ["Michael Pfaff <michael@pfaff.dev>"]
edition = "2018" edition = "2018"

View File

@ -1,6 +1,6 @@
use std::io::prelude::*; use std::io::prelude::*;
fn main() -> Result<(), Box<std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
let stdin = std::io::stdin(); let stdin = std::io::stdin();
let mut stdin = stdin.lock(); let mut stdin = stdin.lock();
let mut buffer = Vec::new(); let mut buffer = Vec::new();