diff options
author | Vika <vika@fireburn.ru> | 2021-12-06 20:49:58 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-12-06 21:00:02 +0300 |
commit | c02037628e36e71e528b3c76ffb88dc103d73228 (patch) | |
tree | e0d78a61af2f6e1ca7effcca1722f0da31293c05 /src/main.rs | |
parent | 9a9776230ce8d12d305ca8db19cc76f20ae40926 (diff) | |
download | kittybox-c02037628e36e71e528b3c76ffb88dc103d73228.tar.zst |
Make rustfmt and clippy happy
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 4f5f9ed..79e0cf5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,7 +63,7 @@ async fn main() -> Result<(), std::io::Error> { let cookie_secret: String = match env::var("COOKIE_SECRET").ok() { Some(value) => value, None => { - if let Some(filename) = env::var("COOKIE_SECRET_FILE").ok() { + if let Ok(filename) = env::var("COOKIE_SECRET_FILE") { use async_std::io::ReadExt; let mut file = async_std::fs::File::open(filename).await?; |