File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ mod welcome;
19
19
use crate :: db:: DB ;
20
20
use commands:: { Args , Commands } ;
21
21
use diesel:: prelude:: * ;
22
- use serenity:: { model:: prelude:: * , prelude:: * } ;
23
- use serde:: Deserialize ;
24
22
use envy;
23
+ use serde:: Deserialize ;
24
+ use serenity:: { model:: prelude:: * , prelude:: * } ;
25
25
26
26
pub ( crate ) type Result = crate :: commands:: Result < ( ) > ;
27
27
@@ -58,7 +58,9 @@ fn init_data(config: &Config) -> Result {
58
58
upsert_role ( "mod" , & mod_role) ?;
59
59
upsert_role ( "talk" , & talk_role) ?;
60
60
if config. tags || config. crates {
61
- upsert_role ( "wg_and_teams" , & std:: env:: var ( "WG_AND_TEAMS_ID" ) . map_err ( |_| "WG_AND_TEAMS_ID env var not found" ) ?) ?;
61
+ let wg_and_teams_role = & std:: env:: var ( "WG_AND_TEAMS_ID" )
62
+ . map_err ( |_| "WG_AND_TEAMS_ID env var not found" ) ?;
63
+ upsert_role ( "wg_and_teams" , & wg_and_teams_role) ?;
62
64
}
63
65
64
66
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments