Skip to content

Commit 1963d40

Browse files
Merge pull request #32 from Ringrev/hot_fix/config
fix: added constructor for config.rs
2 parents 9d86f8c + eb825bd commit 1963d40

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/login/config.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,19 @@ pub struct Config {
1515
}
1616

1717
impl Config {
18+
19+
pub fn new(facebook_oath_url: String, client_id: String, redirect_uri: String) -> Self {
20+
Config { facebook_oath_url, client_id, redirect_uri }
21+
}
22+
1823
pub fn facebook_oath_url(&self) -> &str {
1924
&self.facebook_oath_url
2025
}
26+
2127
pub fn client_id(&self) -> &str {
2228
&self.client_id
2329
}
30+
2431
pub fn redirect_uri(&self) -> &str {
2532
&self.redirect_uri
2633
}

0 commit comments

Comments
 (0)