Run cargo fmt

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-08-22 12:23:51 +05:30
parent 38a3fb72a6
commit 9129ec9a34
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -17,7 +17,10 @@ fn main() {
fn fetch_inbox_top() -> imap::error::Result<Option<String>> {
let domain = std::env::var("IMAP_DOMAIN").unwrap_or("none".to_string());
let imap_port = std::env::var("IMAP_PORT").unwrap_or("none".to_string()).parse::<u16>().unwrap();
let imap_port = std::env::var("IMAP_PORT")
.unwrap_or("none".to_string())
.parse::<u16>()
.unwrap();
let username = std::env::var("IMAP_USERNAME").unwrap_or("none".to_string());
let password = std::env::var("IMAP_PASSWORD").unwrap_or("none".to_string());
let client = imap::ClientBuilder::new(domain, imap_port).native_tls()?;