We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a21de58 commit 46015feCopy full SHA for 46015fe
src/client.rs
@@ -48,7 +48,7 @@ impl Clone for Client {
48
}
49
50
impl Client {
51
- pub fn new_with_string(credentials_string: String) -> Result<Self, error::Error> {
+ pub fn from_string(credentials_string: String) -> Result<Self, error::Error> {
52
let mut client = Client(Arc::new(RwLock::new(State {
53
token: None,
54
credentials_string,
@@ -65,7 +65,7 @@ impl Client {
65
66
pub fn new(credentials_path: String) -> Result<Self, error::Error> {
67
let credentials_string = fs::read_to_string(credentials_path).unwrap();
68
- Self::new_with_string(credentials_string)
+ Self::from_string(credentials_string)
69
70
71
pub fn subscribe(&self, name: String) -> Subscription {
0 commit comments