Skip to content

Commit ac3342a

Browse files
committed
fix
1 parent 8d76a86 commit ac3342a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ pub struct IssueQuery;
2222
async fn main() -> Result<(), Error> {
2323
let args = CliArgs::parse();
2424

25-
let token = env!("GITHUB_ACCESS_TOKEN");
26-
let client = github_client(token)?;
25+
let token = std::env::var("GITHUB_ACCESS_TOKEN")?;
26+
let client = github_client(&token)?;
2727

2828
run(client, args).await?;
2929

0 commit comments

Comments
 (0)