add async_std::main annotation to main

This commit is contained in:
Paul Campbell 2024-03-10 16:47:00 +00:00
parent f7b744bd4f
commit 0bd78e07e3

View file

@ -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 from: DateTime<Utc> = opts.from.parse().expect("Couldn't parse 'from' date");
let to = Utc::now();