From c9d357a12aaa691607f7da2e87361a0934492d99 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 26 Mar 2018 00:21:38 +0200 Subject: [PATCH] doc: Added an info about the protocol version to to_auth --- src/dsn.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dsn.rs b/src/dsn.rs index a4e649c1..b10be46c 100644 --- a/src/dsn.rs +++ b/src/dsn.rs @@ -73,6 +73,9 @@ pub struct Dsn { impl Dsn { /// Converts the dsn into an auth object. + /// + /// This always attaches the latest and greatest protocol + /// version to the auth header. pub fn to_auth(&self, client_agent: Option<&str>) -> Auth { auth_from_dsn_and_client(self, client_agent) }