Skip to content

Commit 3d34d60

Browse files
committed
Formatting
1 parent 639e843 commit 3d34d60

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ mod welcome;
1919
use crate::db::DB;
2020
use commands::{Args, Commands};
2121
use diesel::prelude::*;
22-
use serenity::{model::prelude::*, prelude::*};
23-
use serde::Deserialize;
2422
use envy;
23+
use serde::Deserialize;
24+
use serenity::{model::prelude::*, prelude::*};
2525

2626
pub(crate) type Result = crate::commands::Result<()>;
2727

@@ -58,7 +58,9 @@ fn init_data(config: &Config) -> Result {
5858
upsert_role("mod", &mod_role)?;
5959
upsert_role("talk", &talk_role)?;
6060
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)?;
6264
}
6365

6466
Ok(())

0 commit comments

Comments
 (0)