From df42f782b90024969f32da55271d8afd32fcd509 Mon Sep 17 00:00:00 2001 From: pfernie Date: Sun, 9 May 2021 20:32:06 -0400 Subject: [PATCH] Update README.md Fix example formatting --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d5c6c88..6b1034b 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,11 @@ `reqwest_cookie_store` provides implementations of `reqwest::cookie::CookieStore` for [https://crates.io/crates/cookie_store](cookie_store) # Example -The following example demonstrates loading a [`cookie_store::CookieStore`] from disk, and using it within a -[`CookieStoreMutex`]. It then makes a series of requests, examining and modifying the contents -of the underlying [`cookie_store::CookieStore`] in between. +The following example demonstrates loading a `cookie_store::CookieStore` from disk, and using it within a +`CookieStoreMutex`. It then makes a series of requests, examining and modifying the contents +of the underlying `cookie_store::CookieStore` in between. -```no_run -# tokio_test::block_on(async { +```rust // Load an existing set of cookies, serialized as json let cookie_store = { let file = std::fs::File::open("cookies.json") @@ -72,5 +71,4 @@ client.get("https://google.com").send().await.unwrap(); let store = cookie_store.lock().unwrap(); store.save_json(&mut writer).unwrap(); } -# }); ```