Skip to content

Commit 46015fe

Browse files
committed
from_string
1 parent a21de58 commit 46015fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Clone for Client {
4848
}
4949

5050
impl Client {
51-
pub fn new_with_string(credentials_string: String) -> Result<Self, error::Error> {
51+
pub fn from_string(credentials_string: String) -> Result<Self, error::Error> {
5252
let mut client = Client(Arc::new(RwLock::new(State {
5353
token: None,
5454
credentials_string,
@@ -65,7 +65,7 @@ impl Client {
6565

6666
pub fn new(credentials_path: String) -> Result<Self, error::Error> {
6767
let credentials_string = fs::read_to_string(credentials_path).unwrap();
68-
Self::new_with_string(credentials_string)
68+
Self::from_string(credentials_string)
6969
}
7070

7171
pub fn subscribe(&self, name: String) -> Subscription {

0 commit comments

Comments
 (0)