Run cargo fmt
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
38a3fb72a6
commit
9129ec9a34
1 changed files with 20 additions and 17 deletions
|
@ -17,7 +17,10 @@ fn main() {
|
||||||
|
|
||||||
fn fetch_inbox_top() -> imap::error::Result<Option<String>> {
|
fn fetch_inbox_top() -> imap::error::Result<Option<String>> {
|
||||||
let domain = std::env::var("IMAP_DOMAIN").unwrap_or("none".to_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 username = std::env::var("IMAP_USERNAME").unwrap_or("none".to_string());
|
||||||
let password = std::env::var("IMAP_PASSWORD").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()?;
|
let client = imap::ClientBuilder::new(domain, imap_port).native_tls()?;
|
||||||
|
|
Loading…
Reference in a new issue