From 638c847528675bb76cdfdc60a4c3348073b8778c Mon Sep 17 00:00:00 2001 From: 0xf8 <0xf8.dev@proton.me> Date: Wed, 12 Apr 2023 03:51:02 -0400 Subject: [PATCH] slight code cleanup; add 'buy' to keywords --- config/keywords.json | 3 ++- src/matrix.rs | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/keywords.json b/config/keywords.json index 83686e4..0696e3e 100644 --- a/config/keywords.json +++ b/config/keywords.json @@ -12,7 +12,8 @@ "meet", "upload", "login", - "send" + "send", + "buy" ], "currencies":[ "$", "£", "€", diff --git a/src/matrix.rs b/src/matrix.rs index 5d0fa33..ed0f263 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -34,8 +34,7 @@ pub async fn restore_session(session_file: &Path) -> anyhow::Result<(Client, Opt let client = Client::builder() .homeserver_url(client_session.homeserver) - .sled_store(client_session.db_path, Some(&client_session.passphrase)) - .unwrap() + .sled_store(client_session.db_path, Some(&client_session.passphrase))? .build() .await?; @@ -61,7 +60,7 @@ pub async fn login(data_dir: &Path, session_file: &Path) -> anyhow::Result