Skip to content

Commit 90c1c16

Browse files
committed
[github.rs] remove references from str equality comparison
1 parent 8ba4526 commit 90c1c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<'a> ToUrl for SingleCommitUrl<'a> {
115115
// "origin/master" is set as `sha` when there is no `--end=` definition
116116
// specified on the command line. We define the GitHub master branch
117117
// HEAD commit as the end commit in this case
118-
if &self.sha == &"origin/master" {
118+
if self.sha == "origin/master" {
119119
format!(
120120
"https://api.github.com/repos/{OWNER}/{REPO}/commits/HEAD",
121121
OWNER = OWNER,

0 commit comments

Comments
 (0)