From c81eb4ec411ab84eb16a143a39894bcce2e59d19 Mon Sep 17 00:00:00 2001 From: Lucas <24826124+Luro02@users.noreply.github.com> Date: Fri, 10 Apr 2020 20:34:21 +0200 Subject: [PATCH] document internal `Arc` of `reqwest::Client` (#876) --- src/async_impl/client.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/async_impl/client.rs b/src/async_impl/client.rs index 55b1ffd..2525a02 100644 --- a/src/async_impl/client.rs +++ b/src/async_impl/client.rs @@ -51,6 +51,11 @@ use crate::{IntoUrl, Method, Proxy, StatusCode, Url}; /// /// The `Client` holds a connection pool internally, so it is advised that /// you create one and **reuse** it. +/// +/// You do **not** have to wrap the `Client` it in an [`Rc`] or [`Arc`] to **reuse** it, +/// because it already uses an [`Arc`] internally. +/// +/// [`Rc`]: std::rc::Rc #[derive(Clone)] pub struct Client { inner: Arc,