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"), }