add async_std::main annotation to main
This commit is contained in:
parent
f7b744bd4f
commit
0bd78e07e3
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ fn fetch_closing_data(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> std::io::Result<()> {
|
#[async_std::main]
|
||||||
|
async fn main() -> std::io::Result<()> {
|
||||||
let opts = Opts::parse();
|
let opts = Opts::parse();
|
||||||
let from: DateTime<Utc> = opts.from.parse().expect("Couldn't parse 'from' date");
|
let from: DateTime<Utc> = opts.from.parse().expect("Couldn't parse 'from' date");
|
||||||
let to = Utc::now();
|
let to = Utc::now();
|
||||||
|
|
Loading…
Reference in a new issue