Skip to content

Commit

Permalink
doc: Added an info about the protocol version to to_auth
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Mar 25, 2018
1 parent 437023c commit c9d357a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dsn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c9d357a

Please sign in to comment.