-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use 2 spaces for tabs on backend Rust code
- Loading branch information
Showing
27 changed files
with
1,985 additions
and
1,997 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
use dotenv; | ||
|
||
pub struct Conf { | ||
pub auth_token: String, | ||
pub auth_token: String, | ||
} | ||
|
||
lazy_static! { | ||
pub static ref CONF: Conf = Conf::default(); | ||
pub static ref CONF: Conf = Conf::default(); | ||
} | ||
|
||
impl Default for Conf { | ||
fn default() -> Self { | ||
Conf { | ||
auth_token: dotenv::var("AUTH_TOKEN") | ||
.expect("The `AUTH_TOKEN` environment variable must be supplied"), | ||
} | ||
fn default() -> Self { | ||
Conf { | ||
auth_token: dotenv::var("AUTH_TOKEN") | ||
.expect("The `AUTH_TOKEN` environment variable must be supplied"), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.