Skip to content

Commit d9a1dd0

Browse files
committed
Merge #205: Make Auth::get_user_pass() public
840c708 Make Auth::get_user_pass() public (Nadav Ivgi) Pull request description: I found myself needing this for implementing a custom transport. ACKs for top commit: RCasatta: utACK 840c708 Tree-SHA512: 4a8a828abd7f1bbb0c38a44112ac1580850e188ac36984385b7f19b3fdc060dbc7e7c71e890ed2ba61c1ca2d91e1c15a99e431f386fc5c714697fb450d8f2d24
2 parents 09b0496 + 840c708 commit d9a1dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pub enum Auth {
196196

197197
impl Auth {
198198
/// Convert into the arguments that jsonrpc::Client needs.
199-
fn get_user_pass(self) -> Result<(Option<String>, Option<String>)> {
199+
pub fn get_user_pass(self) -> Result<(Option<String>, Option<String>)> {
200200
use std::io::Read;
201201
match self {
202202
Auth::None => Ok((None, None)),

0 commit comments

Comments
 (0)