From 470c6612deb7d5deee29d2990b0928d1b6100d9e Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Thu, 8 Dec 2022 11:08:05 -0500 Subject: [PATCH] Formatting. --- src/morethantext/mod.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/morethantext/mod.rs b/src/morethantext/mod.rs index 38089a3..78d88c0 100644 --- a/src/morethantext/mod.rs +++ b/src/morethantext/mod.rs @@ -173,7 +173,10 @@ mod cache { let mtt = MTT::new().await; let id = mtt.db.add_entry(CacheEntry::Raw("same".to_string())).await; let expected = "different"; - mtt.db.update_entry(&id, CacheEntry::Raw(expected.to_string())).await.unwrap(); + mtt.db + .update_entry(&id, CacheEntry::Raw(expected.to_string())) + .await + .unwrap(); let output = mtt.db.get_entry(&id).await.unwrap(); assert_eq!(output.to_string(), expected); } @@ -181,7 +184,11 @@ mod cache { #[async_std::test] async fn update_bad_id() { let mtt = MTT::new().await; - match mtt.db.update_entry("wilma", CacheEntry::Raw("wrong".to_string())).await { + match mtt + .db + .update_entry("wilma", CacheEntry::Raw("wrong".to_string())) + .await + { Ok(_) => assert!(false, "Bad id should raise an error."), Err(err) => assert_eq!(err.to_string(), "cache entry not found"), }