Skip to content

Commit

Permalink
Change repo.as_str() to &repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahao6635 committed Jan 19, 2024
1 parent ba0ab9d commit 92d946b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/playbook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl PlaybookService {
let mut description = String::new();

let repo = repo(&req.repo).unwrap_or_default();
let repository = ctx.github_client.repositories().find(repo.as_str()).ok().unwrap_or_default();
let repository = ctx.github_client.repositories().find(&repo).ok().unwrap_or_default();
match repository {
Some(repository) => {
title = repo;
Expand Down

0 comments on commit 92d946b

Please sign in to comment.