Skip to content

Commit

Permalink
Refactor personal token cloning in ClientBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Sep 30, 2024
1 parent 0e0bd4b commit 7bf8bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lychee-lib/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ impl ClientBuilder {
let github_client = match self.github_token.as_ref().map(ExposeSecret::expose_secret) {
Some(token) if !token.is_empty() => Some(
Octocrab::builder()
.personal_token(token.clone())
.personal_token(token.to_string())
.build()
// this is essentially the same reqwest::ClientBuilder::build error
// see https://docs.rs/octocrab/0.18.1/src/octocrab/lib.rs.html#360-364
Expand Down

0 comments on commit 7bf8bb2

Please sign in to comment.