File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,4 @@ src/app/data.rs
10
10
/.cargo-packager
11
11
Cargo.lock
12
12
* .db.old
13
- * .toml
14
- set_env.sh
13
+ telescope.toml
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ impl Default for TelescopeApp {
73
73
let app_data = AppData :: new ( ) ;
74
74
let esi = webb:: esi:: EsiManager :: new (
75
75
app_data. user_agent . as_str ( ) ,
76
- app_data. client_id . as_str ( ) ,
77
- app_data. secret_key . as_str ( ) ,
76
+ app_data. client_id ,
77
+ app_data. secret_key ,
78
78
app_data. url . as_str ( ) ,
79
79
app_data. scope ,
80
80
settings. paths . local_db . clone ( ) ,
Original file line number Diff line number Diff line change 1
1
pub struct AppData < ' a > {
2
2
pub user_agent : String ,
3
3
pub scope : Vec < & ' a str > ,
4
- pub secret_key : String ,
5
- pub client_id : String ,
4
+ pub secret_key : & ' a str ,
5
+ pub client_id : & ' a str ,
6
6
pub url : String ,
7
7
}
8
8
@@ -19,8 +19,8 @@ impl<'a> AppData<'a> {
19
19
"esi-corporations.read_standings.v1" ,
20
20
"esi-alliances.read_contacts.v1" ,
21
21
] ,
22
- secret_key : std :: env:: var ( "TELESCOPE_SECRET_KEY" ) . expect ( "No ESI Secret Key its configured ") ,
23
- client_id : std :: env:: var ( "TELESCOPE_CLIENT_ID" ) . expect ( "No ESI Client Id its configured ") ,
22
+ secret_key : env ! ( "TELESCOPE_SECRET_KEY" ) ,
23
+ client_id : env ! ( "TELESCOPE_CLIENT_ID" ) ,
24
24
url : String :: from ( "http://localhost:56123/login" ) ,
25
25
user_agent : String :: from ( "telescope/dev" ) ,
26
26
}
You can’t perform that action at this time.
0 commit comments