use `dyn` in main method declaration
This commit is contained in:
parent
b24e0de684
commit
617945fc8e
|
@ -60,7 +60,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "in2qr"
|
||||
version = "0.1.0"
|
||||
version = "1.0.1"
|
||||
dependencies = [
|
||||
"qr2term",
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "in2qr"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
authors = ["Michael Pfaff <michael@pfaff.dev>"]
|
||||
edition = "2018"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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 mut stdin = stdin.lock();
|
||||
let mut buffer = Vec::new();
|
||||
|
|
Loading…
Reference in New Issue